/* ================================================================
   Certe — Checkout Page Styles
   Scoped entirely to body.woocommerce-checkout
   Accent colour: #2563eb — find/replace to match your brand
   ================================================================ */


/* --- Hide empty shipping column (col-2) ------------------------ */
/* Prevents a blank box appearing between billing and order sections */

body.woocommerce-checkout #customer_details .col-2 {
    display: none !important;
}

body.woocommerce-checkout #customer_details .col-1 {
    width: 100%;
    float: none;
}


/* --- Section headings ("Your Details", "Your order") ----------- */

body.woocommerce-checkout h3,
body.woocommerce-checkout #order_review_heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 14px;
    margin-bottom: 22px;
    margin-top: 0;
}




/* --- Form labels ----------------------------------------------- */

body.woocommerce-checkout .form-row label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.01em;
    margin-bottom: 5px;
    display: block;
}

body.woocommerce-checkout .form-row label .required {
    color: #ef4444;
    margin-left: 2px;
}


/* --- Input fields ---------------------------------------------- */

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row input[type="email"],
body.woocommerce-checkout .form-row input[type="tel"],
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.93rem;
    color: #111827;
    background-color: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    line-height: 1.5;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row input[type="email"]:focus,
body.woocommerce-checkout .form-row input[type="tel"]:focus,
body.woocommerce-checkout .form-row select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .form-row.woocommerce-invalid select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

body.woocommerce-checkout .form-row.woocommerce-validated input.input-text {
    border-color: #10b981;
}

/* Select arrow */
body.woocommerce-checkout .form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

body.woocommerce-checkout .form-row {
    margin-bottom: 14px;
}


/* --- Order review table ---------------------------------------- */

body.woocommerce-checkout #order_review .shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-size: 0.9rem;
}

body.woocommerce-checkout #order_review .shop_table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0 12px;
    border-bottom: 1px solid #e8eaed;
    background: none;
}

body.woocommerce-checkout #order_review .shop_table tbody tr td {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    border-top: none;
}

body.woocommerce-checkout #order_review .shop_table tbody tr:last-child td {
    border-bottom: none;
}

body.woocommerce-checkout #order_review .shop_table .cart-subtotal th,
body.woocommerce-checkout #order_review .shop_table .cart-subtotal td,
body.woocommerce-checkout #order_review .shop_table .order-total th,
body.woocommerce-checkout #order_review .shop_table .order-total td {
    padding: 10px 0;
    border-top: 1px solid #e8eaed;
    font-size: 0.9rem;
}

body.woocommerce-checkout #order_review .shop_table .order-total th,
body.woocommerce-checkout #order_review .shop_table .order-total td {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}


/* --- Place order button ---------------------------------------- */

body.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
    margin-top: 16px;
    text-align: center;
}

body.woocommerce-checkout #place_order:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

body.woocommerce-checkout #place_order:active {
    transform: translateY(0);
    box-shadow: none;
}


/* --- Notices --------------------------------------------------- */

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
    border-radius: 8px;
    font-size: 0.88rem;
    padding: 13px 16px 13px 40px;
    margin-bottom: 20px;
    list-style: none;
}

body.woocommerce-checkout .woocommerce-error li,
body.woocommerce-checkout .woocommerce-message li {
    margin: 0;
    padding: 0;
}


/* --- Privacy / terms ------------------------------------------- */

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.5;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #2563eb;
    text-decoration: underline;
}


/* --- Mobile ---------------------------------------------------- */

@media ( max-width: 768px ) {

    body.woocommerce-checkout #customer_details .col-1 {
        width: 100%;
        float: none;
    }

    body.woocommerce-checkout #place_order {
        font-size: 1rem;
        padding: 14px;
    }
}
