/**
 * My Book styles.
 * All selectors are prefixed with "my-book-" to avoid conflicts with
 * Tutor LMS, WooCommerce, or the active theme.
 */

.my-book-wrapper {
    width: 100%;
}

.my-book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

@media (max-width: 600px) {
    .my-book-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.my-book-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.my-book-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.my-book-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    overflow: hidden;
}

.my-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-book-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.my-book-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: inherit;
}

.my-book-button {
    display: inline-block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: #163a5f;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
    transition: opacity 0.2s ease;
	margin-right:12px;
}

.my-book-button:hover {
    opacity: 0.9;
    color: #fff;
}

.my-book-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.my-book-empty p {
    margin-bottom: 16px;
    color: #666;
}

.my-book-thankyou-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    vertical-align: middle;
}