/*
Theme Name:  Salient Child
Description: Child theme for the Salient theme.
Template:    salient
Version:     1.0.0
Author:      ThemeNectar
Text Domain: salient-child
*/

.buy-now-button { margin-left: 10px; }

/* ============================================================
   CHECKOUT — Fancy Redesign  (uses !important to beat Salient)
   ============================================================ */

/* Shipping notice banner */
.lk-shipping-notice {
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    background: linear-gradient(135deg,#fff0f7 0%,#fde8f4 100%) !important;
    border: 1.5px solid rgba(233,30,140,0.3) !important;
    border-radius: 16px !important;
    padding: 18px 24px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 4px 20px rgba(233,30,140,0.10);
    animation: lk-slide-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes lk-slide-in {
    from { opacity:0; transform:translateY(-14px); }
    to   { opacity:1; transform:translateY(0); }
}
.lk-ship-icon {
    font-size: 30px !important;
    flex-shrink: 0;
    line-height: 1;
}
.lk-ship-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px;
}
.lk-ship-title {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #bf1570 !important;
    line-height: 1.3;
}
.lk-ship-sub {
    display: block !important;
    font-size: 12.5px !important;
    color: #999 !important;
    line-height: 1.4;
}

/* ── Billing card ── */
body.woocommerce-checkout .woocommerce-billing-fields {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 36px 32px 28px !important;
    box-shadow: 0 8px 40px rgba(233,30,140,0.08), 0 1px 4px rgba(0,0,0,0.05) !important;
    margin-bottom: 24px !important;
    position: relative !important;
    overflow: hidden !important;
}
body.woocommerce-checkout .woocommerce-billing-fields::before {
    content: '' !important;
    position: absolute !important;
    top:0; left:0; right:0;
    height: 4px !important;
    background: linear-gradient(90deg,#e91e8c,#ff6ba8,#c2185b) !important;
    background-size: 200% 100% !important;
    animation: lk-shimmer 4s linear infinite;
}
@keyframes lk-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Billing heading */
body.woocommerce-checkout .woocommerce-billing-fields > h3 {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 28px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #f3e6f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}
body.woocommerce-checkout .woocommerce-billing-fields > h3::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 20px !important;
    background: linear-gradient(180deg,#e91e8c,#c2185b) !important;
    border-radius: 4px !important;
    flex-shrink: 0;
}

/* Form rows */
body.woocommerce-checkout .form-row { margin-bottom: 20px !important; position: relative; }

/* Labels */
body.woocommerce-checkout .form-row > label {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #aaa !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    transition: color 0.2s ease;
}
body.woocommerce-checkout .form-row:focus-within > label { color: #e91e8c !important; }
body.woocommerce-checkout label .required,
body.woocommerce-checkout label abbr[title] { color: #e91e8c !important; text-decoration: none !important; }
body.woocommerce-checkout label .optional { color: #bbb !important; font-weight: 400 !important; text-transform: none !important; }

/* ── Inputs ── */
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout .woocommerce-checkout input.input-text {
    width: 100% !important;
    border: 2px solid #ece8f1 !important;
    border-radius: 12px !important;
    padding: 14px 18px 14px 46px !important;
    font-size: 15px !important;
    color: #1a1a2e !important;
    background-color: #f9f8fb !important;
    background-image: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.5 !important;
    height: auto !important;
}
body.woocommerce-checkout textarea {
    width: 100% !important;
    border: 2px solid #ece8f1 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: #1a1a2e !important;
    background-color: #f9f8fb !important;
    min-height: 96px !important;
    resize: vertical !important;
    outline: none !important;
}
body.woocommerce-checkout input.input-text:focus {
    border-color: #e91e8c !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(233,30,140,0.12), 0 2px 12px rgba(233,30,140,0.06) !important;
    outline: none !important;
}
body.woocommerce-checkout textarea:focus {
    border-color: #e91e8c !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(233,30,140,0.12) !important;
    outline: none !important;
}

/* Field icons */
#billing_first_name {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e91e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 18px !important;
}
#billing_address_1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e91e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 18px !important;
}
#billing_phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e91e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.15 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.06 1.18h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.09 8.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 21 16z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 18px !important;
}

/* Validation */
body.woocommerce-checkout .form-row.woocommerce-validated .input-text { border-color:#22c55e !important; background-color:#f0fdf4 !important; }
body.woocommerce-checkout .form-row.woocommerce-invalid  .input-text { border-color:#ef4444 !important; background-color:#fff5f5 !important; box-shadow:0 0 0 3px rgba(239,68,68,0.12) !important; }

/* Additional fields card */
body.woocommerce-checkout .woocommerce-additional-fields {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 24px 32px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05) !important;
    margin-bottom: 24px !important;
}
body.woocommerce-checkout .woocommerce-additional-fields > h3 {
    font-size: 15px !important; font-weight: 700 !important; color: #1a1a2e !important;
    margin: 0 0 16px !important; padding-bottom: 12px !important;
    border-bottom: 1px solid #f3e6f0 !important;
    display: flex !important; align-items: center !important; gap: 8px;
}

/* Order review panel */
body.woocommerce-checkout #order_review_heading {
    font-size: 19px !important; font-weight: 700 !important; color: #1a1a2e !important;
    margin-bottom: 20px !important;
    display: flex !important; align-items: center !important; gap: 9px;
}
body.woocommerce-checkout #order_review_heading::before {
    content: '' !important; display: inline-block !important;
    width: 4px !important; height: 20px !important;
    background: linear-gradient(180deg,#e91e8c,#c2185b) !important;
    border-radius: 4px !important;
}
body.woocommerce-checkout #order_review {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
    position: sticky !important;
    top: 24px !important;
}

/* Order table */
.woocommerce-checkout-review-order-table { width:100%; border-collapse:collapse; margin-bottom:16px; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 10px 0 !important; font-size: 14px !important;
    border-bottom: 1px solid #f3e6f0 !important;
}
.woocommerce-checkout-review-order-table thead th {
    font-size: 11px !important; text-transform: uppercase !important;
    letter-spacing: 0.07em !important; color: #aaa !important; font-weight: 700 !important;
    border-bottom: 2px solid #f3e6f0 !important;
}
.woocommerce-checkout-review-order-table .shipping td,
.woocommerce-checkout-review-order-table .shipping th {
    color: #e91e8c !important; font-weight: 700 !important;
}
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    font-size: 20px !important; font-weight: 800 !important;
    color: #1a1a2e !important; border-bottom: none !important; padding-top: 14px !important;
}

/* Payment */
body.woocommerce-checkout #payment { background: transparent !important; border-radius: 0 !important; padding: 0 !important; }
body.woocommerce-checkout #payment .payment_methods { list-style: none !important; margin: 0 0 16px !important; padding: 0 !important; border: none !important; }
body.woocommerce-checkout #payment .wc_payment_method {
    background: #f9f8fb !important; border: 2px solid #ece8f1 !important;
    border-radius: 14px !important; padding: 14px 18px !important; margin-bottom: 10px !important;
}
body.woocommerce-checkout #payment .wc_payment_method.payment_method_cod {
    border-color: rgba(233,30,140,0.35) !important; background: #fff8fc !important;
}
body.woocommerce-checkout #payment .payment_box { background: transparent !important; border: none !important; }

/* Place Order */
body.woocommerce-checkout #payment #place_order {
    display: block !important; width: 100% !important;
    background: linear-gradient(135deg,#e91e8c 0%,#c2185b 100%) !important;
    border: none !important; border-radius: 14px !important;
    padding: 18px 32px !important; font-size: 16px !important;
    font-weight: 700 !important; letter-spacing: 0.05em !important;
    color: #fff !important; cursor: pointer !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 6px 28px rgba(233,30,140,0.38) !important;
    text-transform: uppercase !important;
}
body.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 36px rgba(233,30,140,0.48) !important;
}
body.woocommerce-checkout #payment #place_order:active {
    transform: translateY(0) !important;
}

/* Coupon */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #fff0f7 !important; border-left: 4px solid #e91e8c !important;
    border-radius: 12px !important; border-top: none !important;
    padding: 14px 20px !important; font-size: 14px !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info a { color:#e91e8c !important; font-weight:600 !important; }

/* Mobile */
@media (max-width:768px) {
    body.woocommerce-checkout .woocommerce-billing-fields { padding: 24px 18px 20px !important; }
    body.woocommerce-checkout .woocommerce-additional-fields { padding: 20px 18px !important; }
    body.woocommerce-checkout #order_review { padding: 24px 18px !important; }
    .lk-shipping-notice { flex-direction: column !important; align-items: flex-start !important; padding: 16px 18px !important; }
}


/* ── Checkout: Quantity +/- controls ── */
.lk-qty-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #f4f1f9 !important;
    border-radius: 100px !important;
    padding: 3px !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}
.lk-qty-btn {
    width: 26px !important;
    height: 26px !important;
    border: none !important;
    background: #fff !important;
    border-radius: 50% !important;
    color: #e91e8c !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 4px rgba(233,30,140,0.18) !important;
    transition: background 0.15s, transform 0.1s !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
.lk-qty-btn:hover {
    background: #e91e8c !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}
.lk-qty-val {
    min-width: 22px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #2d1b4e !important;
}
.lk-qty-wrap.lk-qty-loading {
    opacity: 0.55 !important;
    pointer-events: none !important;
}

/* ── Checkout: Shipping method selector ── */
body.woocommerce-checkout ul#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 4px !important;
}
body.woocommerce-checkout ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    border: 2px solid #ece8f1 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    background: #fafafa !important;
    transition: border-color 0.2s, background 0.2s !important;
}
body.woocommerce-checkout ul#shipping_method li.lk-ship-selected {
    border-color: #e91e8c !important;
    background: #fff0f7 !important;
}
body.woocommerce-checkout ul#shipping_method input[type="radio"] {
    accent-color: #e91e8c !important;
    width: 17px !important;
    height: 17px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
body.woocommerce-checkout ul#shipping_method label {
    cursor: pointer !important;
    font-weight: 600 !important;
    color: #2d1b4e !important;
    font-size: 14px !important;
    margin: 0 !important;
    flex: 1 !important;
}
body.woocommerce-checkout ul#shipping_method li.lk-ship-selected label {
    color: #bf1570 !important;
}
