/* Side Cart - frontend v1.2.6 */

.sc-side-cart-root,
.sc-side-cart-root * {
    box-sizing: border-box;
}

.sc-floating-cart {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: var(--sc-accent-color, #2498cf);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.sc-floating-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.sc-floating-cart.sc-empty {
    opacity: 0;
    pointer-events: none;
    transform: scale(.85);
}

.sc-floating-cart svg {
    fill: currentColor;
    display: block;
}

.sc-floating-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    line-height: 25px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.sc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99996;
    background: rgba(15, 23, 42, 0.44);
    opacity: 0;
    transition: opacity .24s ease;
}

body.sc-drawer-open .sc-overlay {
    opacity: 1;
}

.sc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99997;
    width: min(520px, 100vw);
    height: 100vh;
    background: #ffffff;
    color: #0f172a;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -18px 0 60px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
}

body.sc-drawer-open .sc-drawer {
    transform: translateX(0);
}

.sc-drawer-header {
    display: grid;
    grid-template-columns: 52px 1fr 42px;
    gap: 10px;
    align-items: center;
    padding: 18px 22px;
    min-height: 80px;
    border-bottom: 1px solid #e5e7eb;
}

.sc-drawer-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #0b1f3a;
    text-align: center;
}

.sc-drawer-back {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #0b1f3a;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sc-drawer-count {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    background: #eef2f7;
    color: #0b1f3a;
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}

.sc-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

.sc-cart-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.sc-cart-items {
    padding: 24px 22px 10px;
}

.sc-cart-item {
    display: grid;
    grid-template-columns: 92px 1fr 96px;
    gap: 16px;
    align-items: start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f3;
}

.sc-cart-item-image img {
    width: 92px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.sc-cart-item-info h3 {
    margin: 2px 0 8px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #0b1f3a;
}

.sc-cart-item-price {
    margin-bottom: 8px;
    font-size: 16px;
    color: #0b1f3a;
}

.sc-remove-item {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b1f3a;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.sc-qty-control {
    display: grid;
    grid-template-rows: 34px 34px 34px;
    width: 40px;
    border: 1px solid #dbe2ea;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.sc-qty-control button,
.sc-qty-control input {
    width: 100%;
    height: 34px;
    border: 0;
    border-bottom: 1px solid #dbe2ea;
    background: #ffffff;
    color: #0b1f3a;
    text-align: center;
    font-size: 16px;
    line-height: 34px;
}

.sc-qty-control button {
    cursor: pointer;
}

.sc-qty-control input {
    padding: 0;
    pointer-events: none;
}

.sc-qty-control button:last-child {
    border-bottom: 0;
}

.sc-qty-control button:hover {
    background: #f8fafc;
}

.sc-extras {
    padding: 18px 22px;
    border-top: 1px solid #edf0f3;
    background: #ffffff;
}

.sc-extras h3 {
    margin: 0 0 14px;
    color: #0b1f3a;
    font-size: 18px;
    font-weight: 700;
}

.sc-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.sc-extra-row:last-child {
    border-bottom: 0;
}

.sc-extra-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #0b1f3a;
    font-size: 15px;
}

.sc-extra-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sc-accent-color, #2498cf);
}

.sc-extra-price {
    flex: 0 0 auto;
    color: #0b1f3a;
    font-size: 15px;
    font-weight: 700;
}

.sc-cart-totals {
    margin-top: auto;
    border-top: 1px solid #dbe2ea;
    background: #ffffff;
}

.sc-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 22px;
    border-bottom: 1px solid #e5e7eb;
    color: #0b1f3a;
    font-size: 16px;
}

.sc-total-row strong {
    font-size: 17px;
    font-weight: 700;
}

.sc-extras-total-row {
    background: #fbfdff;
}

.sc-grand-total {
    font-weight: 700;
}

.sc-checkout-wrap {
    padding: 20px 22px 28px;
    background: #ffffff;
}

.sc-checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    width: 100%;
    border-radius: 8px;
    background: var(--sc-accent-color, #2498cf);
    color: #ffffff !important;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: filter .2s ease, transform .2s ease;
}

.sc-checkout-button:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.sc-empty-cart {
    padding: 34px 22px;
    color: #0b1f3a;
    font-size: 17px;
    text-align: center;
}

.sc-loading .sc-drawer-body {
    opacity: .62;
    pointer-events: none;
}

@media (max-width: 640px) {
    .sc-floating-cart {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
    }

    .sc-drawer {
        width: 100vw;
    }

    .sc-drawer-header {
        grid-template-columns: 46px 1fr 36px;
        padding: 14px 16px;
        min-height: 70px;
    }

    .sc-drawer-header h2 {
        font-size: 21px;
    }

    .sc-cart-items {
        padding: 18px 16px 8px;
    }

    .sc-cart-item {
        grid-template-columns: 78px 1fr 86px;
        gap: 12px;
    }

    .sc-cart-item-image img {
        width: 78px;
        height: 66px;
    }

    .sc-cart-item-info h3 {
        font-size: 16px;
    }

    .sc-extras,
    .sc-total-row,
    .sc-checkout-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sc-checkout-button {
        min-height: 54px;
        font-size: 18px;
    }
}

.sc-add-to-cart-hook {
    cursor: pointer;
}

.sc-button-loading {
    opacity: .72;
    pointer-events: none;
}

.sc-conflict-notice {
    position: relative;
    margin: 16px 22px 0;
    padding: 16px 42px 16px 16px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #78350f;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.sc-conflict-notice p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.sc-notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #78350f;
    font-size: 22px;
    line-height: 24px;
    cursor: pointer;
}

.sc-conflict-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-replace-choice,
.sc-keep-choice {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.sc-replace-choice {
    border: 1px solid var(--sc-accent-color, #2498cf);
    background: var(--sc-accent-color, #2498cf);
    color: #ffffff;
}

.sc-keep-choice {
    border: 1px solid #f59e0b;
    background: #ffffff;
    color: #78350f;
}

@media (max-width: 640px) {
    .sc-conflict-notice {
        margin-left: 16px;
        margin-right: 16px;
    }

    .sc-replace-choice,
    .sc-keep-choice {
        width: 100%;
    }
}


/* v1.2.4: quantity means number of persons for per-person packages. */
.sc-person-qty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 96px;
}

.sc-person-qty-label {
    display: block;
    max-width: 96px;
    color: #0b1f3a;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
}

.sc-person-qty-min {
    display: block;
    max-width: 96px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
}

.sc-qty-control button:disabled,
.sc-qty-control button:disabled:hover {
    cursor: not-allowed;
    opacity: .45;
    background: #f8fafc;
}

@media (max-width: 480px) {
    .sc-person-qty-wrap {
        width: 86px;
    }

    .sc-person-qty-label {
        max-width: 86px;
        font-size: 11px;
    }

    .sc-person-qty-min {
        max-width: 86px;
        font-size: 10px;
    }
}

/* v1.2.0: fixed-fee products can hide quantity controls. */
.sc-cart-item.sc-no-qty {
    grid-template-columns: 92px 1fr;
}

@media (max-width: 480px) {
    .sc-cart-item.sc-no-qty {
        grid-template-columns: 74px 1fr;
    }
}


/* v1.2.3: custom text-only buttons without href still behave like real buttons. */
.sc-add-to-cart-hook,
.sc-add-to-cart-hook * {
    cursor: pointer !important;
}
