/**
 * TechSpace - Modern Checkout Styles & Polish
 */

/* =============================================================
   1. BREADCRUMBS & STEPPER (Strictly Centered)
   ============================================================= */
.woo-page-header,
.woo-page-header.page-header-8,
.page-top.page-header-8,
.page-top {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

.woo-page-header .breadcrumb,
.woocommerce-checkout .breadcrumb,
.woocommerce-cart .breadcrumb,
.woocommerce-checkout .breadcrumb.text-center,
.woocommerce-cart .breadcrumb.text-center,
.breadcrumb.text-center {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: #ffffff !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    margin: 20px auto 35px auto !important;
    list-style: none !important;
    float: none !important;
}

.woocommerce-checkout .breadcrumb li,
.woocommerce-cart .breadcrumb li {
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #64748b !important;
}

.woocommerce-checkout .breadcrumb li a,
.woocommerce-cart .breadcrumb li a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.woocommerce-checkout .breadcrumb li.current,
.woocommerce-checkout .breadcrumb li.current a,
.woocommerce-cart .breadcrumb li.current,
.woocommerce-cart .breadcrumb li.current a {
    color: #0088cc !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .breadcrumb li.current::before,
.woocommerce-cart .breadcrumb li.current::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0088cc;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.woocommerce-checkout .breadcrumb li i.delimiter,
.woocommerce-cart .breadcrumb li i.delimiter {
    color: #cbd5e1 !important;
    margin: 0 4px;
}

/* =============================================================
   2. CHECKOUT NOTICES & COUPON BAR
   ============================================================= */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    border-radius: 12px !important;
    color: #0369a1 !important;
    padding: 14px 20px !important;
    margin-bottom: 25px !important;
    font-size: 14.5px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.05);
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before {
    color: #0088cc !important;
    font-size: 18px !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a {
    color: #0088cc !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

form.checkout_coupon {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* =============================================================
   3. MAIN CHECKOUT CONTAINERS & CARDS
   ============================================================= */
.woocommerce-checkout form.checkout {
    margin-top: 10px;
}

/* Left Card: Customer Details */
.woocommerce-checkout #customer_details .col-lg-7 > .align-left > .box-content,
.woocommerce-checkout #customer_details .col-lg-7 > .box-content,
.woocommerce-checkout .woocommerce-billing-fields {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px 28px !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 25px !important;
}

/* Right Card: Order Review & Sticky Summary */
.woocommerce-checkout #order_review_heading {
    display: none !important;
}

.woocommerce-checkout #order_review {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px 24px !important;
    box-shadow: 0 4px 25px -2px rgba(15, 23, 42, 0.06) !important;
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* Section Titles */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.techspace-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.woocommerce-billing-fields h3::before {
    content: "1";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #0088cc;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

#order_review::before {
    content: "2 • თქვენი შეკვეთა და გადახდა";
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
    letter-spacing: -0.2px;
}

/* =============================================================
   4. CUSTOMER TYPE SEGMENTED CONTROL (Person vs Company)
   ============================================================= */
.techspace-customer-type-row {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    margin-bottom: 24px !important;
}

.techspace-customer-type-row > label:first-child {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.techspace-customer-type-row .woocommerce-input-wrapper {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    position: relative !important;
}

@media (max-width: 575px) {
    .techspace-customer-type-row .woocommerce-input-wrapper {
        flex-direction: column !important;
    }
}

/* Completely HIDE the raw input radio buttons */
.techspace-customer-type-row input[type="radio"],
.techspace-customer-type-row input.input-radio,
.woocommerce-billing-fields .techspace-customer-type-row input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Clean, modern interactive card buttons */
.techspace-customer-type-row label.radio {
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    text-align: center !important;
    user-select: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Compact 16px indicator inside the card */
.techspace-customer-type-row label.radio::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 2px solid #94a3b8 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
}

.techspace-customer-type-row label.radio:hover {
    border-color: #0088cc !important;
    background: #f8fafc !important;
    color: #0088cc !important;
}

.techspace-customer-type-row label.radio.selected {
    border-color: #0088cc !important;
    background: #f0f9ff !important;
    color: #0088cc !important;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2) !important;
    font-weight: 700 !important;
}

.techspace-customer-type-row label.radio.selected::before {
    border-color: #0088cc !important;
    background: radial-gradient(circle, #0088cc 40%, #ffffff 45%) !important;
}

/* =============================================================
   5. INPUT FIELDS & LABELS POLISH
   ============================================================= */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row {
    margin-bottom: 18px !important;
}

.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-additional-fields label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: block;
}

.woocommerce-billing-fields label abbr.required,
.woocommerce-shipping-fields label abbr.required {
    color: #ef4444 !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
}

.woocommerce-billing-fields input.input-text,
.woocommerce-shipping-fields input.input-text,
.woocommerce-additional-fields textarea.input-text {
    width: 100% !important;
    height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce-additional-fields textarea.input-text {
    height: 85px !important;
    padding: 12px 16px !important;
    resize: vertical;
}

.woocommerce-billing-fields input.input-text:focus,
.woocommerce-shipping-fields input.input-text:focus,
.woocommerce-additional-fields textarea.input-text:focus {
    border-color: #0088cc !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15) !important;
    background: #ffffff !important;
    outline: none !important;
}

.woocommerce-billing-fields input.input-text::placeholder,
.woocommerce-additional-fields textarea.input-text::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
}

/* =============================================================
   6. ORDER REVIEW TABLE (Modern Receipt Style)
   ============================================================= */
table.woocommerce-checkout-review-order-table {
    border: none !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

table.woocommerce-checkout-review-order-table thead {
    display: none !important;
}

table.woocommerce-checkout-review-order-table tbody tr.cart_item {
    border-bottom: 1px solid #f1f5f9 !important;
}

table.woocommerce-checkout-review-order-table td.product-checkout-wrap {
    padding: 14px 0 !important;
    display: flex !important;
    align-items: center;
    gap: 14px;
}

table.woocommerce-checkout-review-order-table .product-thumbnail {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc;
}

table.woocommerce-checkout-review-order-table .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

table.woocommerce-checkout-review-order-table .product-content {
    flex-grow: 1;
}

table.woocommerce-checkout-review-order-table .product-name {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    line-height: 1.35 !important;
}

table.woocommerce-checkout-review-order-table .product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

table.woocommerce-checkout-review-order-table .product-total .amount {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0088cc !important;
}

/* Totals rows */
table.woocommerce-checkout-review-order-table tfoot tr {
    border-top: 1px solid #f1f5f9 !important;
}

table.woocommerce-checkout-review-order-table tfoot th,
table.woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 0 !important;
    border: none !important;
}

table.woocommerce-checkout-review-order-table tfoot th h4 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin: 0 !important;
}

table.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

/* Shipping row */
table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
    text-align: right !important;
}

.woocommerce-shipping-methods label {
    font-size: 13.5px !important;
    color: #10b981 !important;
    font-weight: 600 !important;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Final Total row */
table.woocommerce-checkout-review-order-table tfoot tr.order-total th h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0088cc !important;
}

/* =============================================================
   7. PAYMENT METHODS POLISH (Modern Clickable Cards)
   ============================================================= */
#payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#payment h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 20px 0 14px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    list-style: none !important;
}

#payment ul.payment_methods li.wc_payment_method {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#payment ul.payment_methods li.wc_payment_method:hover {
    border-color: #94a3b8 !important;
}

#payment ul.payment_methods li.wc_payment_method.selected,
#payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: #0088cc !important;
    background: #f0f9ff !important;
    box-shadow: 0 0 0 1.5px #0088cc !important;
}

#payment ul.payment_methods li.wc_payment_method .porto-radio {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

#payment ul.payment_methods li.wc_payment_method label {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    margin: 0 0 0 10px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"] {
    accent-color: #0088cc !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

#payment div.payment_box {
    background: #ffffff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #0369a1 !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.04) !important;
}

#payment div.payment_box::before {
    display: none !important;
}

#payment div.payment_box p {
    margin: 0 !important;
}

/* =============================================================
   8. PLACE ORDER BUTTON (Primary Gradient CTA)
   ============================================================= */
#place_order {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.35) !important;
    transition: all 0.25s ease !important;
    margin-top: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: none !important;
}

#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(0, 136, 204, 0.45) !important;
    filter: brightness(1.06) !important;
}

#place_order:active {
    transform: translateY(0) !important;
}

/* =============================================================
   9. TRUST & SECURITY BADGES
   ============================================================= */
.techspace-checkout-trust {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.techspace-checkout-trust .trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.techspace-checkout-trust .trust-badge i {
    color: #0088cc;
    font-size: 14px;
}

/* Terms Checkbox */
.woocommerce-terms-and-conditions-wrapper {
    margin: 15px 0 !important;
    font-size: 13px !important;
    color: #475569 !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: #0088cc !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #0088cc !important;
    text-decoration: underline !important;
}
