.checkout_section {
    background-color: #f4f4f4;
}

.checkout_shell {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.checkout_left,
.checkout_right {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    padding: 24px;
}

.checkout_right {
    top: 110px;
    align-self: start;
}

.checkout_title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    color: #333333;
}

.checkout_order_row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    background: #fafafa;
}

.checkout_product_card {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.checkout_product_image img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 3px;
}

.checkout_product_info h3 {
    margin: 4px 0;
    font-size: 18px;
    color: #333333;
}

.checkout_sku,
.checkout_unit_price {
    margin: 4px 0;
    color: #777777;
}

.checkout_quantity_wrap {
    min-width: 124px;
}

.checkout_quantity_wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.checkout_quantity_control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    overflow: hidden;
}

.checkout_quantity_control button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #ffffff;
    color: #333333;
    font-size: 20px;
}

.checkout_quantity_control input {
    width: 72px;
    height: 40px;
    border: 0;
    text-align: center;
}

.checkout_line_total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 15px;
    color: #333333;
}

.checkout_line_total strong {
    font-size: 22px;
    line-height: 1.2;
}

.checkout_shipping_form {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    background: #fafafa;
}

.checkout_shipping_title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.checkout_shipping_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.checkout_shipping_field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
}

.checkout_shipping_field input {
    width: 100%;
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    padding: 0 12px;
    background: #ffffff;
    color: #333333;
}

.checkout_postcode_input_wrap {
    position: relative;
    z-index: 1;
}

.checkout_postcode_input_wrap input {
    padding-right: 124px;
}

.checkout_postcode_btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #333333;
    border-radius: 3px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.checkout_postcode_input_wrap input[readonly][data-postcode-trigger] {
    cursor: pointer;
}

.checkout_postcode_inline {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: auto;
    min-width: 100%;
    max-width: calc(100vw - 24px);
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    z-index: 40;
}

.checkout_postcode_inline.is-visible {
    display: block;
    min-height: 320px;
}

.checkout_shipping_field_full {
    grid-column: 1 / -1;
}

.checkout_shipping_save_default {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555555;
    cursor: pointer;
}

.checkout_product_detail {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e1e1e1;
}

.checkout_product_detail_image {
    margin-bottom: 14px;
}

.checkout_product_detail_image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.checkout_product_detail_content {
    color: #444444;
    line-height: 1.65;
}

.checkout_product_detail_content p {
    margin: 0 0 10px !important;
}

.checkout_product_detail_content ul,
.checkout_product_detail_content ol {
    margin: 0 0 10px 20px !important;
    padding: 0;
}

.checkout_product_detail_content h1,
.checkout_product_detail_content h2,
.checkout_product_detail_content h3,
.checkout_product_detail_content h4,
.checkout_product_detail_content h5,
.checkout_product_detail_content h6 {
    margin: 0 0 10px !important;
    line-height: 1.4;
}

.checkout_product_detail_content blockquote {
    margin: 0 0 10px !important;
    padding-left: 12px;
    border-left: 3px solid #ff6f00;
}

.checkout_product_detail_content > *:last-child {
    margin-bottom: 0 !important;
}

.checkout_summary_card {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    padding: 16px;
}

.checkout_summary_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.checkout_hint {
    margin-top: 12px;
    font-size: 14px;
    color: #777777;
}

.checkout_agreement {
    margin-top: 14px;
}

.checkout_agreement label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 0;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

.checkout_agreement label input[type="checkbox"] {
    margin-top: 3px;
}

.checkout_agreement a {
    color: #ff6f00;
    text-decoration: underline;
}

.checkout_pay_btn {
    width: 100%;
    margin-top: 16px;
    border-radius: 3px;
    height: 45px;
    font-size: 16px;
    font-weight: 600;
}

.checkout_orders_link {
    display: inline-block;
    margin-top: 12px;
    color: #ff6f00;
    font-weight: 600;
}

.checkout_feedback {
    min-height: 22px;
    margin-top: 10px;
    color: #777777;
}

.checkout_feedback.is-error {
    color: #c0392b;
}

.checkout_result {
    margin-top: 20px;
    border-radius: 3px;
    padding: 18px;
    border: 1px solid #e1e1e1;
    background: #ffffff;
}

.checkout_result--success {
    border-left: 3px solid #27ae60;
    color: #333333;
}

.checkout_result--fail {
    border-left: 3px solid #c0392b;
    color: #333333;
}

.checkout_result h3 {
    margin: 0 0 8px;
}

.checkout_result p {
    margin: 4px 0;
}

.checkout_result_link {
    display: inline-block;
    margin-top: 12px;
}

@media (max-width: 992px) {
    .checkout_shell {
        grid-template-columns: 1fr;
    }

    .checkout_order_row {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .checkout_shipping_grid {
        grid-template-columns: 1fr;
    }

    .checkout_product_card {
        grid-column: 1 / -1;
    }

    .checkout_line_total {
        align-items: flex-start;
    }

    .checkout_right {
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 640px) {
    .checkout_order_row {
        grid-template-columns: 1fr;
    }

    .checkout_quantity_wrap {
        min-width: 0;
    }

    .checkout_line_total {
        align-items: flex-start;
    }

    .checkout_postcode_input_wrap input {
        padding-right: 116px;
    }

    .checkout_postcode_btn {
        right: 4px;
        padding: 0 8px;
        font-size: 11px;
    }
}
