/* My Account Bookings - Luxury Spa Brown Theme */
.eb-account-bookings-wrapper {
    margin-top: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2b2b2b;
}

.eb-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e2dc;
}
.eb-account-header h2 {
    font-size: 24px;
    font-weight: 300;
    margin: 0 0 4px;
    color: #3b302a;
}
.eb-account-header p {
    font-size: 14px;
    color: #665e57;
    margin: 0;
}
.eb-header-cta {
    padding: 9px 18px !important;
    font-size: 13px !important;
    flex-shrink: 0;
}

/* No Bookings Empty State */
.eb-no-bookings {
    background: #faf7f4;
    border: 1px solid #e8e2dc;
    border-radius: 16px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}
.eb-empty-icon {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border: 1px solid #e6ded8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(90, 75, 65, 0.06);
}
.eb-no-bookings h3 {
    font-size: 20px;
    font-weight: 500;
    color: #3b302a;
    margin: 0 0 10px;
}
.eb-no-bookings p {
    font-size: 15px;
    color: #665e57;
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* Booking Cards */
.eb-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.eb-booking-card {
    background: #ffffff;
    border: 1px solid #e6ded8;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.eb-booking-card:hover {
    border-color: #5a4b41;
    box-shadow: 0 6px 20px rgba(90, 75, 65, 0.08);
}
.eb-booking-card.eb-past-booking {
    opacity: 0.75;
    background: #faf8f6;
}

.eb-card-thumb {
    width: 140px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.eb-card-main {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.eb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.eb-card-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #1a1a1a;
}

/* Status Badges */
.eb-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eb-status-confirmed {
    background: #f7f4f1;
    color: #5a4b41;
    border: 1px solid #e6ded8;
}
.eb-status-cancelled {
    background: #fdf2f2;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

/* Card Details */
.eb-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 18px;
}
.eb-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.eb-detail-item svg {
    color: #5a4b41;
}
.eb-detail-item a {
    color: #5a4b41;
    text-decoration: underline;
}

/* Actions */
.eb-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0ece9;
}
.eb-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none !important;
}
.eb-btn-primary {
    background: #5a4b41;
    color: #ffffff !important;
    border-color: #5a4b41;
}
.eb-btn-primary:hover:not(:disabled) {
    background: #45372f;
    border-color: #45372f;
}
.eb-btn-outline {
    background: #fff;
    color: #5a4b41;
    border-color: #5a4b41;
}
.eb-btn-outline:hover:not(:disabled) {
    background: #f7f4f1;
}
.eb-btn-danger {
    background: #fff;
    color: #c53030;
    border-color: #feb2b2;
}
.eb-btn-danger:hover:not(:disabled) {
    background: #fff5f5;
    border-color: #c53030;
}
.eb-account-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Overlay */
.eb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.eb-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.eb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.eb-modal-close:hover {
    color: #111;
}
.eb-modal-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
}
.eb-modal-sub {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}
.eb-modal-footer {
    margin-top: 25px;
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .eb-booking-card {
        flex-direction: column;
    }
    .eb-card-thumb {
        width: 100%;
        height: 160px;
    }
    .eb-card-actions {
        flex-direction: column;
    }
    .eb-account-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   SUPER COOL LUXURY SPA MY ACCOUNT PAGE STYLING
   ========================================================================== */

body.woocommerce-account {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .entry-content,
.woocommerce-account main,
.woocommerce-account .wp-block-post-content {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* Page Title Styling */
.woocommerce-account h1, 
.woocommerce-account .page-title,
.woocommerce-account h2:first-of-type {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: #3b302a;
    text-align: center;
    margin-bottom: 35px;
}

/* ==========================================================================
   LOGGED OUT: LOGIN & REGISTER CARDS STYLING
   ========================================================================== */

#customer_login, 
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
}

#customer_login .u-column1, 
#customer_login .u-column2,
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1 1 440px;
    max-width: 500px;
    background: #ffffff;
    border: 1px solid #e8e2dc;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 15px 35px rgba(90, 75, 65, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

#customer_login .u-column1:hover, 
#customer_login .u-column2:hover {
    box-shadow: 0 20px 45px rgba(90, 75, 65, 0.1);
    border-color: #d8ceb8;
}

/* Card Headings */
#customer_login h2, 
.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2 {
    font-size: 24px;
    font-weight: 400;
    color: #45372f;
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f4f0eb;
}

/* Form Fields */
.woocommerce-form-row {
    margin-bottom: 20px !important;
}

.woocommerce-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5a4b41;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-form-row label .required {
    color: #b85d43;
    text-decoration: none;
}

.woocommerce-Input,
.woocommerce-form-row input[type="text"],
.woocommerce-form-row input[type="email"],
.woocommerce-form-row input[type="password"],
.woocommerce-form-row input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #fdfbf9;
    border: 1px solid #e0d8d0;
    border-radius: 12px;
    font-size: 15px;
    color: #2b2b2b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.woocommerce-Input:focus,
.woocommerce-form-row input:focus {
    background: #ffffff;
    border-color: #5a4b41;
    box-shadow: 0 0 0 4px rgba(90, 75, 65, 0.1);
}

/* Remember Me Checkbox */
.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-top: 14px;
    margin-bottom: 20px;
    cursor: pointer;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5a4b41;
    border-radius: 4px;
    cursor: pointer;
}

/* Primary Buttons */
.woocommerce-form-login button.button,
.woocommerce-form-register button.button,
.woocommerce-button.button,
.woocommerce-Button.button,
.woocommerce-form-login input[type="submit"] {
    width: 100%;
    height: 50px;
    background: #5a4b41 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(90, 75, 65, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-form-login button.button:hover,
.woocommerce-form-register button.button:hover,
.woocommerce-button.button:hover,
.woocommerce-form-login input[type="submit"]:hover {
    background: #45372f !important;
    box-shadow: 0 6px 20px rgba(90, 75, 65, 0.28);
    transform: translateY(-1px);
}

/* Lost Password Link */
.woocommerce-LostPassword {
    margin-top: 16px;
    text-align: center;
}
.woocommerce-LostPassword a {
    color: #7d6e64;
    font-size: 13px;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.woocommerce-LostPassword a:hover {
    color: #5a4b41;
}

/* Explanatory text in register */
.woocommerce-PrivacyPolicyNotice,
.woocommerce-form-register p {
    font-size: 13px;
    color: #776e65;
    line-height: 1.5;
}
.woocommerce-PrivacyPolicyNotice a {
    color: #5a4b41;
    font-weight: 500;
}

/* ==========================================================================
   LOGGED IN: DASHBOARD & NAVIGATION STYLING
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce-MyAccount-navigation {
    flex: 0 0 240px;
    background: #ffffff;
    border: 1px solid #e8e2dc;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(90, 75, 65, 0.04);
    align-self: flex-start;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #554a43;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation-link a:hover {
    background: #f7f4f1;
    color: #3b302a;
    transform: translateX(3px);
}

.woocommerce-MyAccount-navigation-link.is-active a {
    background: #5a4b41;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(90, 75, 65, 0.2);
}

/* Nav Icons */
.woocommerce-MyAccount-navigation-link a::before {
    content: "" !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
}

.woocommerce-MyAccount-navigation-link a:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.woocommerce-MyAccount-navigation-link.is-active a::before {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* 1. Dashboard (Home) */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* 2. Vælverubókingar (Calendar) */
.woocommerce-MyAccount-navigation-link--bokingar a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E");
}

/* 3. Bíleggingar (Orders) */
.woocommerce-MyAccount-navigation-link--orders a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cline x1='3' x2='21' y1='6' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

/* 4. Bústaðir (Address Pin) */
.woocommerce-MyAccount-navigation-link--edit-address a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* 5. Kontoupplýsingar (Account User) */
.woocommerce-MyAccount-navigation-link--edit-account a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* 6. Rita út (Log Out) */
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-content {
    flex: 1 1 600px;
    background: #ffffff;
    border: 1px solid #e8e2dc;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 25px rgba(90, 75, 65, 0.04);
    box-sizing: border-box;
}

/* Tables inside My Account */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content table.woocommerce-orders-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e8e2dc !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    width: 100% !important;
    table-layout: auto !important;
}

.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.woocommerce-orders-table th {
    background: #faf7f4 !important;
    color: #5a4b41 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e8e2dc !important;
}

.woocommerce-MyAccount-content table.shop_table td,
.woocommerce-MyAccount-content table.woocommerce-orders-table td {
    padding: 16px !important;
    border-bottom: 1px solid #f2ece7 !important;
    color: #333 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td,
.woocommerce-MyAccount-content table.woocommerce-orders-table tr:last-child td {
    border-bottom: none !important;
}

/* Fix Order Actions Cell & Vís Button Overflow */
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
    text-align: right !important;
    white-space: nowrap !important;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-orders-table .woocommerce-button.button,
.woocommerce-MyAccount-content .button {
    display: inline-block !important;
    background: #5a4b41 !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(90, 75, 65, 0.15) !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    min-width: unset !important;
    height: auto !important;
    line-height: 1.4 !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-orders-table .woocommerce-button.button:hover,
.woocommerce-MyAccount-content .button:hover {
    background: #45372f !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
