.cart-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 680px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    color: #111;
    z-index: 9999999;
    box-shadow: -5px 0 20px rgba(0,0,0,.15);
}

.cart-drawer.is-open {
    display: flex;
    flex-direction: column;
}


/* Main cart */
.cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* Header */
.cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.cart__header h2 {
    margin: 0;
    font-size: 20px;
}

.cart__header button {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 20px;
}


/* Items */
.cart__items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}


/* Single item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}


/* Image */
.cart-item__image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Product title */
.cart-item__title {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
}


/* Price */
.cart-item__price {
    white-space: nowrap;
    font-size: 14px;
}


/* Quantity controls */
.cart-item button {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.cart-item__quantity {
    min-width: 20px;
    text-align: center;
}


/* Remove */
.cart-item button[data-remove] {
    border: 0;
    color: #777;
    font-size: 12px;
}


/* Footer */
.cart__footer {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #fff;
}


.cart__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
}


.btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: #111;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

/* Chrome, Safari, Edge, Opera */
.fd-product-quantity::-webkit-outer-spin-button,
.fd-product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.fd-product-quantity {
    -moz-appearance: textfield;
}

.fd-shopify-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.7);

    opacity: 0;
    visibility: hidden;

    transition: opacity .2s ease, visibility .2s ease;
}


.fd-shopify-loader.is-active {
    opacity: 1;
    visibility: visible;
}


.fd-shopify-loader__spinner {
    width: 40px;
    height: 40px;

    border: 3px solid #ddd;
    border-top-color: #000;

    border-radius: 50%;

    animation: fd-loader-spin .8s linear infinite;
}


@keyframes fd-loader-spin {

    to {
        transform: rotate(360deg);
    }

}

.currency-switcher {
    position: relative;
}

.currency-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    min-width: 40px;

    display: flex;
    flex-direction: column;

    background: #000;
    border: 1px solid #000;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);

    color: #fff;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s;

    z-index: 1000;
}

.currency-switcher__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-switcher__dropdown button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    width: 100%;
    padding: 10px 16px;

    background: transparent;
    border: 0;
    cursor: pointer;

    white-space: nowrap;
}

.currency-switcher__dropdown button:hover {
    background: #4f4f4f;
}

.currency-switcher__dropdown button.active {
    background: #4f4f4f;
}

.gift-voucher-form__error {
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid #d63638;
    background: #fff5f5;
    color: #d63638;
    border-radius: 4px;
    font-size: 14px;
}

.gift-voucher-form__error[hidden] {
    display: none;
}