/* iCal sync (vendor dashboard) */
.er-ical-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.er-ical-step {
    background: #f4f6f9;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.er-ical-step .n {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d1b2a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.er-ical-step p {
    margin: 0;
    font-size: 12.5px;
    color: #374151;
    line-height: 1.4;
}

.er-ical-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.er-ical-row .ico {
    flex-shrink: 0;
    color: #b8925a;
    display: flex;
}

.er-ical-row input {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.er-ical-row input:focus {
    border-color: #c9a96e;
}

.er-ical-row .rm {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #ef4444;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.er-ical-row .rm:hover {
    background: #fef2f2;
}

.er-ical-add {
    background: none;
    border: none;
    color: #b8925a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.er-ical-export {
    display: flex;
    gap: 8px;
    align-items: center;
}

.er-ical-export input {
    flex: 1;
    background: #f4f6f9;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #374151;
    min-width: 0;
}

@media (max-width: 640px) {
    .er-ical-steps {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce My Account */
.woocommerce-account .woocommerce {
    max-width: 1160px;
    margin: 32px auto 64px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* Logged-out (login/register): no account nav column → center the forms */
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
    content: none;
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    float: none;
    width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    border: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 13px 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: .15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #f4f6f9;
    color: #0d1b2a;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: rgba(201, 169, 110, .08);
    color: #b8925a;
    border-left-color: #c9a96e;
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 30px;
    min-width: 0;
    float: none;
    width: auto;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
}

.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content legend {
    font-family: var(--fx-font-heading-override);
    color: #0d1b2a;
    font-size: 20px;
    margin: 0 0 18px;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
    color: #b8925a;
    font-weight: 600;
}

/* Empty-state notices (no orders / no downloads): kill WooCommerce's absolutely
   positioned ::before info icon that overflowed the rounded box, give clean padding. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notice {
    position: relative;
    overflow: hidden;
    padding: 18px 22px;
    margin: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #c9a96e;
    border-radius: 10px;
    color: #374151;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notice::before {
    content: none;
    display: none;
}

.woocommerce-account table.shop_table,
.woocommerce-account table.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: none;
}

.woocommerce-account table.shop_table thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: none;
}

.woocommerce-account table.shop_table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13.5px;
}

.woocommerce-account table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-account .woocommerce form .form-row,
.woocommerce-account .woocommerce-EditAccountForm p {
    margin: 0 0 16px;
}

.woocommerce-account .woocommerce form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.woocommerce-account .woocommerce form input.input-text,
.woocommerce-account .woocommerce form input[type="email"],
.woocommerce-account .woocommerce form input[type="password"],
.woocommerce-account .woocommerce form input[type="text"],
.woocommerce-account .woocommerce form select {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.woocommerce-account .woocommerce form input:focus,
.woocommerce-account .woocommerce form select:focus {
    outline: none;
    border-color: #c9a96e;
}

.woocommerce-account .woocommerce fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
}

.woocommerce-account .woocommerce a.button,
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce input.button {
    background: #c9a96e;
    color: #0d1b2a;
    border: none;
    border-radius: 9px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .15s;
}

.woocommerce-account .woocommerce a.button:hover,
.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce input.button:hover {
    background: #b8925a;
}

.woocommerce-account .woocommerce-MyAccount-content .button.view {
    padding: 7px 14px;
    font-size: 12.5px;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    border: none;
    margin: 0 0 20px;
}

.woocommerce-account .woocommerce-info {
    background: #eef4fb;
    color: #0d1b2a;
    border-left: 3px solid #c9a96e;
}

.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-error::before {
    content: none;
}

.woocommerce-account .woocommerce-Address {
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 16px 18px;
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    line-height: 1.7;
}

.woocommerce-account .woocommerce-Address-title h2 {
    font-family: var(--fx-font-heading-override);
    color: #0d1b2a;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

@media (max-width: 820px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
    }
}

/* Order received (thank you) — celebration */
.er-confetti-wrap { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9999; }
.er-confetti { position: absolute; top: -16px; width: 10px; height: 14px; border-radius: 2px; opacity: .9; animation-name: er-fall; animation-timing-function: cubic-bezier(.3,.6,.5,1); animation-iteration-count: 1; }
@keyframes er-fall {
    0% { transform: translateY(-20px) rotate(0); opacity: 1; }
    100% { transform: translateY(105vh) rotate(680deg); opacity: .5; }
}

.woocommerce-order-received .woocommerce { max-width: 760px; margin: 48px auto 64px; padding: 0 24px; text-align: center; }
.woocommerce-order-received .woocommerce::before,
.woocommerce-order-received .woocommerce::after { content: none; display: none; }

.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-notice--success {
    font-family: var(--fx-font-heading-override);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    color: #0d1b2a;
    line-height: 1.2;
    margin: 18px auto 30px;
    max-width: 600px;
    animation: er-pop .6s cubic-bezier(.2,.8,.2,1.2) both;
}
.woocommerce-order-received .woocommerce-thankyou-order-received::before {
    content: '';
    display: block;
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 46px no-repeat;
    box-shadow: 0 12px 32px rgba(16,185,129,.35);
    animation: er-pop .55s .08s both;
}
@keyframes er-pop {
    0% { transform: scale(.4); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.woocommerce-order-received ul.woocommerce-order-overview {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 14px; margin: 0 auto 34px; padding: 0; max-width: 680px;
}
.woocommerce-order-received ul.woocommerce-order-overview li {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 14px 22px; font-size: 11px; text-transform: uppercase;
    letter-spacing: .5px; color: #6b7280; border-top: 1px solid #e5e7eb; margin: 0;
}
.woocommerce-order-received ul.woocommerce-order-overview li strong {
    display: block; font-size: 16px; color: #0d1b2a; text-transform: none;
    letter-spacing: 0; margin-top: 5px; font-weight: 700;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    text-align: left; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 14px; padding: 24px 26px; margin: 0 auto 20px; max-width: 660px;
}
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    font-family: var(--fx-font-heading-override); color: #0d1b2a; font-size: 18px; margin: 0 0 16px;
}
.woocommerce-order-received table.woocommerce-table--order-details { width: 100%; border-collapse: collapse; border: none; }
.woocommerce-order-received table.woocommerce-table--order-details th,
.woocommerce-order-received table.woocommerce-table--order-details td {
    padding: 11px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; text-align: left; border-top: none; border-left: none; border-right: none;
}
.woocommerce-order-received table.woocommerce-table--order-details thead th {
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
    color: #0d1b2a;
}
.woocommerce-order-received table.woocommerce-table--order-details tbody td {
    border-bottom: 1px solid #f3f4f6;
}
.woocommerce-order-received table.woocommerce-table--order-details tfoot th { color: #0d1b2a; border-top: 1px solid #e5e7eb; }
.woocommerce-order-received table.woocommerce-table--order-details img { border-radius: 8px; max-width: 48px; height: auto; }
.woocommerce-order-received table.woocommerce-table--order-details td:first-child { display: flex; align-items: center; gap: 10px; }
.woocommerce-order-received address { font-style: normal; line-height: 1.7; color: #374151; }

.woocommerce-order-received .woocommerce-info {
    background: #eef4fb; color: #0d1b2a; border: none; border-left: 3px solid #C9A96E;
    border-radius: 10px; padding: 14px 18px; font-size: 14px; max-width: 640px; margin: 0 auto 22px; text-align: left;
}
.woocommerce-order-received .woocommerce-info::before { content: none; }
.woocommerce-order-received form.woocommerce-form-login {
    max-width: 460px; margin: 0 auto; text-align: left; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px 26px;
}
.woocommerce-order-received form.woocommerce-form-login .button {
    background: #C9A96E; color: #0d1b2a; border: none; border-radius: 9px;
    padding: 12px 22px; font-weight: 700; cursor: pointer;
}

/* Flatpickr date picker theming */
.flatpickr-input.form-control,
input.flatpickr-input,
.er-form-field input.flatpickr-input {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    width: 100% !important;
    font-family: inherit !important;
    color: #0d1b2a !important;
    background: #fff !important;
    transition: border-color .15s !important;
    box-sizing: border-box !important;
}

input.flatpickr-input:focus {
    outline: none !important;
    border-color: #C9A96E !important;
}

.flatpickr-calendar {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.12);
}

.flatpickr-months {
    background: #0d1b2a;
    border-radius: 8px 8px 0 0;
}

.flatpickr-month {
    background: #0d1b2a;
    color: #fff;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month svg {
    fill: #C9A96E;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff;
}

.flatpickr-calendar input.cur-year:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]) {
    background: transparent;
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
    height: auto;
    font-size: inherit;
    font-weight: 600;
    box-shadow: none;
}

.flatpickr-calendar select.flatpickr-monthDropdown-months {
    background: transparent;
    color: #fff;
    border: 0;
    padding: 0 4px 0 0;
    font-size: inherit;
    font-weight: 600;
}

.flatpickr-calendar select.flatpickr-monthDropdown-months option {
    color: #0d1b2a;
    background: #fff;
    font-weight: 500;
}

.flatpickr-calendar .flatpickr-weekdays {
    background: #0d1b2a;
}

.flatpickr-calendar .flatpickr-weekdays .flatpickr-weekday {
    background: #0d1b2a;
    color: #fff;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: #C9A96E;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0d1b2a;
    border-color: #0d1b2a;
    color: #fff;
}

.flatpickr-day.inRange {
    background: rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.3);
}

.flatpickr-day:hover {
    background: rgba(201, 169, 110, 0.15);
    border-color: #C9A96E;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #0d1b2a;
    border-color: #0d1b2a;
}

.flatpickr-time input {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #0d1b2a;
}

.flatpickr-time input:focus {
    border-color: #C9A96E;
    outline: none;
}

.flatpickr-innerContainer {
    background: #fff;
}

.flatpickr-rContainer {
    border-top: 1px solid #e5e7eb;
}

.er-order-item-thumb {
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}
