.bag-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 100vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    overflow: auto;
    margin: 0;
    border: 0;
    border-left: 1px solid #d7d7d7;
    padding: 30px;
    background: #ffffff;
    color: #111111;
    box-shadow: -16px 0 54px rgba(0, 0, 0, .14);
}

.bag-dialog[open] {
    display: flex;
    animation: bag-drawer-in .22s ease-out both;
}

.bag-dialog::backdrop {
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}

.bag-dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 20px;
}

.bag-dialog-kicker {
    margin: 0 0 9px;
    color: #686868;
    font-size: 9px;
    letter-spacing: 1.4px;
}

.bag-dialog-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
}

.bag-dialog-close {
    border: 0;
    padding: 4px;
    background: transparent;
    color: #111111;
    font: inherit;
    font-size: 9px;
    letter-spacing: 1px;
    cursor: pointer;
}

.bag-dialog-close-form {
    margin: 0;
}

.bag-dialog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 36px 0;
}

.bag-dialog-content p {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
}

.bag-dialog-footer {
    border-top: 1px solid #d7d7d7;
    padding-top: 20px;
}

.bag-dialog-footer a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-decoration: none;
    transition: background .18s ease;
}

.bag-dialog-footer a:hover {
    background: #333333;
}

.bag-dialog-close:hover {
    color: #777777;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: start;
    gap: 72px;
}

.checkout-form {
    display: grid;
    gap: 34px;
}

.checkout-section {
    display: grid;
    gap: 20px;
}

.checkout-section h2,
.checkout-summary h2 {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.3px;
}

.checkout-field {
    display: grid;
    gap: 8px;
    color: #555555;
    font-size: 9px;
    letter-spacing: 1px;
}

.checkout-field input {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-bottom: 1px solid #c9c9c9;
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
    color: #111111;
    font: inherit;
    font-size: 15px;
    letter-spacing: 0;
}

.checkout-field input:focus {
    border-bottom-color: #111111;
    outline: 0;
}

.checkout-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.checkout-note {
    margin: -8px 0 0;
    color: #686868;
    font-size: 11px;
    line-height: 1.6;
}

.checkout-summary {
    border-top: 1px solid #c9c9c9;
    padding-top: 18px;
}

.checkout-summary p {
    margin: 32px 0 48px;
    color: #686868;
    font-family: var(--page-font);
    font-size: 18px;
}

.checkout-shop-link {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #111111;
    padding-bottom: 12px;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-decoration: none;
}

@keyframes bag-drawer-in {
    from { opacity: .7; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 600px) {
    .bag-dialog {
        padding: 24px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .checkout-summary {
        order: -1;
    }

    .checkout-row {
        gap: 14px;
    }
}