/* ========================================
   FK Checkout Shortcode Styles
   ======================================== */

.fk-checkout-container {
    background: linear-gradient(135deg, #0f172e 0%, #1a2a4e 100%);
    color: #ffffff;
    padding: 36px 20px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fk-checkout-header {
    margin-bottom: 24px;
}

.fk-checkout-title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.fk-checkout-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.fk-checkout-content .woocommerce {
    color: #ffffff;
}

.fk-checkout-content .woocommerce form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
    grid-template-areas: "left right";
    gap: 22px;
    align-items: start;
}

.fk-checkout-content .col2-set,
.fk-checkout-content #order_review_heading,
.fk-checkout-content #order_review {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    align-self: start;
}

.fk-checkout-content .col2-set {
    grid-area: left;
}

.fk-checkout-content #order_review_heading,
.fk-checkout-content #order_review {
    grid-column: 2 !important;
}

.fk-checkout-content #order_review_heading {
    display: none !important;
}

.fk-checkout-content #order_review {
    grid-area: right;
    margin-top: 0 !important;
}

.fk-checkout-content #order_review::before {
    content: "YOUR ORDER";
    display: block;
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fk-checkout-content .col2-set {
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fk-checkout-content .col2-set .col-1,
.fk-checkout-content .col2-set .col-2 {
    float: none;
    width: 100%;
}

.fk-checkout-content .woocommerce-billing-fields h3,
.fk-checkout-content .woocommerce-shipping-fields h3,
.fk-checkout-content h3#ship-to-different-address,
.fk-checkout-content #order_review_heading {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fk-checkout-content .form-row {
    margin: 0 0 12px;
}

.fk-checkout-content label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fk-checkout-content input.input-text,
.fk-checkout-content textarea,
.fk-checkout-content select,
.fk-checkout-content .select2-container--default .select2-selection--single {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-radius: 8px;
    min-height: 46px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.fk-checkout-content .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.fk-checkout-content input.input-text:focus,
.fk-checkout-content textarea:focus,
.fk-checkout-content select:focus,
.fk-checkout-content .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(74, 158, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.18);
    outline: none;
}

.fk-checkout-content input::placeholder,
.fk-checkout-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fk-checkout-content #order_review {
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fk-checkout-content #order_review table.shop_table {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    color: #ffffff;
}

.fk-checkout-content #order_review table.shop_table th,
.fk-checkout-content #order_review table.shop_table td {
    border-color: rgba(255, 255, 255, 0.12);
    padding: 12px;
    color: #ffffff;
}

.fk-checkout-content #order_review table.shop_table th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.75);
}

.fk-checkout-content .woocommerce-checkout-payment {
    background: transparent;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 10px;
    padding-top: 14px;
}

.fk-checkout-content .wc_payment_method label,
.fk-checkout-content .payment_box,
.fk-checkout-content .woocommerce-privacy-policy-text p,
.fk-checkout-content .woocommerce-terms-and-conditions-wrapper {
    color: rgba(255, 255, 255, 0.82);
}

.fk-checkout-content #place_order {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #4a9eff 0%, #3680d4 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.fk-checkout-content #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.35);
}

.fk-checkout-content .woocommerce-error,
.fk-checkout-content .woocommerce-info,
.fk-checkout-content .woocommerce-message {
    margin: 0 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 8px;
}

.fk-checkout-empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172e 0%, #1a2a4e 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .fk-checkout-content .woocommerce form.checkout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "left"
            "right";
    }

    .fk-checkout-content .col2-set,
    .fk-checkout-content #order_review_heading,
    .fk-checkout-content #order_review {
        grid-column: 1 !important;
    }
}

@media (max-width: 768px) {
    .fk-checkout-container {
        padding: 24px 14px;
    }

    .fk-checkout-title {
        font-size: 26px;
    }

    .fk-checkout-content .col2-set,
    .fk-checkout-content #order_review {
        padding: 14px;
    }
}
