/*
 Theme Name:   The Slow Draw Theme
 Description:  Custom child theme
 Author:       Test
 Template:     hello-elementor
 Version:      1.0.1
 Text Domain:  hello-elementor-child
*/

/* --- CUSTOM MODERN CHECKOUT (SD CLASSES) --- */

/* 1. The Card Container */
li.sd-pay-item {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Hover Effect */
li.sd-pay-item:hover {
    border-color: #000 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* SELECTED STATE (Gold Border & Off-white BG) */
li.sd-pay-item.checked {
    border-color: #9B6B28 !important; /* Gold Border */
    background-color: #fcfbf9 !important;
    box-shadow: 0 4px 20px rgba(155, 107, 40, 0.1) !important;
}

/* 2. The Label Area */
.sd-pay-label {
    display: flex !important;
    align-items: center !important;
    padding: 20px !important;
    cursor: pointer !important;
    width: 100% !important;
    margin: 0 !important;
}

/* 3. The Custom Radio Circle (Outer Ring) */
.sd-radio-ui {
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #ccc !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    background: #fff !important;
    transition: 0.2s !important;
}

/* SELECTED STATE: Radio Circle */
li.sd-pay-item.checked .sd-radio-ui {
    border-color: #9B6B28 !important; /* Gold Border */
}

/* The Gold Dot (Inner Circle) */
.sd-radio-ui::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 12px !important;
    height: 12px !important;
    background: #9B6B28 !important; /* Gold Dot */
    border-radius: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important; /* Hidden by default */
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* SHOW Gold Dot when selected */
li.sd-pay-item.checked .sd-radio-ui::after {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* 4. The Title Text */
.sd-pay-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    text-transform: capitalize !important;
}

/* 5. The Description Box (Fixing the Ugly Grey Box) */
li.sd-pay-item .payment_box {
    background-color: transparent !important; /* No background color */
    color: #666 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    padding: 0 20px 20px 60px !important; /* Indented to align with text */
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove the old arrow triangle */
li.sd-pay-item .payment_box::before {
    display: none !important;
}

/* Hide the default radio input completely */
li.sd-pay-item input[type="radio"].input-radio {
    opacity: 0 !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important; 
}

/* 1. Stop theme floating-label system on checkout */
.woocommerce-checkout .form-row label {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.2;
}

/* Kill any theme "active / filled / floating" states */
.woocommerce-checkout .form-row[class*="active"] label,
.woocommerce-checkout .form-row[class*="filled"] label,
.woocommerce-checkout .form-row[class*="has-value"] label {
    transform: none !important;
    top: auto !important;
    font-size: 13px !important;
}

/* 2. HARD RESET Select2 container */
.select2-container,
.select2-container * {
    box-sizing: border-box !important;
}

/* 3. Select box — Shopify height & alignment */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    display: flex !important;
    align-items: center !important;
}

/* 4. Render ONLY selected value (no label, no stacking) */
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    white-space: nowrap;
}

/* 5. Remove any injected text / pseudo-labels */
.select2-selection--single::before,
.select2-selection--single::after,
.select2-selection__placeholder {
    content: none !important;
    display: none !important;
}

/* 6. Arrow alignment */
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px;
}

/* 7. Focus state (Shopify blue) */
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

/* 8. Remove inherited padding from native selects */
.woocommerce-checkout select {
    padding: 0 !important;
    height: auto !important;
}
/* ========================================================= */
/* SHOPIFY-STYLE WOOCOMMERCE CHECKOUT – FINAL SAFE CSS       */
/* Works AFTER functions.php JS floating-label fix           */
/* ========================================================= */

/* ------------------------------ */
/* LABELS – keep them outside     */
/* ------------------------------ */
.woocommerce-checkout .form-row label {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.2;
    display: block;
}

/* Remove any theme floating/active states */
.woocommerce-checkout .form-row[class*="active"] label,
.woocommerce-checkout .form-row[class*="filled"] label,
.woocommerce-checkout .form-row[class*="has-value"] label,
.woocommerce-checkout .form-row[class*="floating"] label {
    transform: none !important;
    top: auto !important;
    font-size: 13px !important;
}

/* ------------------------------ */
/* INPUT FIELDS (Shopify look)    */
/* ------------------------------ */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"] {
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    font-size: 14px;
    background: #fff;
}

.woocommerce-checkout input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
    outline: none;
}

/* ------------------------------ */
/* SELECT2 RESET (Country/State)  */
/* ------------------------------ */
.select2-container,
.select2-container * {
    box-sizing: border-box;
}

/* Main dropdown box */
.select2-container--default .select2-selection--single {
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    display: flex;
    align-items: center;
}

/* Selected value ONLY (no label stacking) */
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    padding: 0;
    margin: 0;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    white-space: nowrap;
}

/* Remove injected placeholders / pseudo labels */
.select2-selection--single::before,
.select2-selection--single::after,
.select2-selection__placeholder {
    display: none !important;
    content: none !important;
}

/* Arrow alignment */
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 12px;
}

/* Focus state */
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

/* Prevent native select conflicts */
.woocommerce-checkout select {
    padding: 0 !important;
    height: auto !important;
}

/* ------------------------------ */
/* SHIPPING METHOD BOX            */
/* ------------------------------ */
.woocommerce-shipping-methods li {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

/* ------------------------------ */
/* MOBILE SAFETY                 */
/* ------------------------------ */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single,
    .woocommerce-checkout input {
        height: 46px;
    }
}
#ai-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #111;
  color: #fff;
  z-index: 999999;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

#chat-header {
  padding: 12px;
  background: #1f1f1f;
  font-weight: bold;
}

#chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

#chat-input {
  border: none;
  padding: 10px;
  outline: none;
}
