
/* KuthirMart Smart Checkout Styles */
:root {
    --ksc-bg: #F3F4F6;
    --ksc-text: #000000;
    --ksc-text-light: #4B5563;
    --ksc-border: #E5E7EB;
    --ksc-summary-bg: #FAF9F6;
    --ksc-success: #10B981;
    --ksc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ksc-checkout-wrapper {
    font-family: var(--ksc-font);
    background-color: var(--ksc-bg);
    padding: 40px 20px;
    min-height: 100vh;
}

.ksc-checkout-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ksc-col-left {
    flex: 1 1 55%;
}

.ksc-col-right {
    flex: 1 1 40%;
}

@media (max-width: 768px) {
    .ksc-col-left, .ksc-col-right {
        flex: 1 1 100%;
    }
}

.ksc-card {
    background: #ffffff;
    border-radius: var(--ksc-radius);
    padding: 30px;
    box-shadow: var(--ksc-shadow);
    border: 1px solid rgba(255,255,255,0.2);
    /* Glass Effect Subtle */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ksc-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ksc-text);
    margin-bottom: 25px;
    margin-top: 0;
}

.ksc-form-group {
    margin-bottom: 20px;
    position: relative;
}

.ksc-static-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ksc-text);
    margin-bottom: 8px;
}

/* Floating Labels */
.ksc-floating {
    position: relative;
}

.ksc-floating input,
.ksc-floating textarea,
.ksc-form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--ksc-border);
    border-radius: calc(var(--ksc-radius) / 2);
    background-color: transparent;
    font-size: 16px;
    color: var(--ksc-text);
    transition: all 0.3s ease;
    font-family: var(--ksc-font);
    box-sizing: border-box;
    outline: none;
}

.ksc-floating input:focus,
.ksc-floating textarea:focus,
.ksc-form-group select:focus {
    border-color: var(--ksc-primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.ksc-floating label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    color: var(--ksc-text-light);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ksc-floating textarea ~ label {
    top: 24px;
}

.ksc-floating input:focus ~ label,
.ksc-floating input:not(:placeholder-shown) ~ label,
.ksc-floating textarea:focus ~ label,
.ksc-floating textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: var(--ksc-primary);
    font-weight: 600;
}

.ksc-form-group select:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* Order Review WooCommerce Overrides */
.ksc-order-review {
    background-color: var(--ksc-summary-bg);
}

#order_review table.shop_table {
    border: none;
    width: 100%;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
    padding: 15px 0;
    border-bottom: 1px solid var(--ksc-border);
}

#order_review table.shop_table tfoot th,
#order_review table.shop_table tfoot td {
    border-bottom: none;
    border-top: 1px solid var(--ksc-border);
}

/* Payment Methods */
#payment {
    background: transparent !important;
    border-radius: var(--ksc-radius);
}

#payment ul.payment_methods {
    border: 1px solid var(--ksc-border);
    border-radius: var(--ksc-radius);
    padding: 20px;
}

#payment .place-order {
    padding: 20px 0 0 0 !important;
}

button#place_order {
    width: 100%;
    background: linear-gradient(135deg, var(--ksc-primary), var(--ksc-secondary));
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 18px;
    border: none;
    border-radius: var(--ksc-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

button#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

/* Checkbox fixes */
.woocommerce-form__input-checkbox {
    margin-right: 10px;
}
