/* Custom Checkout (CCW) Styles */
.ccw-v33-workshop-icon { width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; background: #fff5f0; flex-shrink: 0; }
.ccw-v33-workshop-icon img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; }
.ccw-v33-workshop-icon .icon { font-size: 22px; color: #8c9aa5; }
.ccw-v33-main-container { direction: rtl; text-align: right; }
.ccw-v33-box { background: #fff; border-radius: 20px; padding: 25px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.ccw-v33-title { font-size: 22px; font-weight: bold; margin-bottom: 20px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; color: #1a2b48; }
.ccw-v33-title .icon { color: #f4a261; background: #fff5f0; padding: 8px; border-radius: 10px; font-size: 18px; }
.ccw-v33-field { margin-bottom: 20px; width: 100%; }
.ccw-v33-field label { display: block; font-weight: bold; margin-bottom: 10px; font-size: 16px; }
.ccw-v33-field input[type="text"], .ccw-v33-field input[type="tel"], .ccw-v33-field textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 12px; background: #f9f9f9; font-size: 16px; box-sizing: border-box; }
.ccw-v33-phone-row { display: flex; gap: 10px; direction: ltr; width: 100%; }
.ccw-v33-prefix-box { position: relative; width: 110px; border: 2px solid #000; border-radius: 12px; padding: 12px; text-align: center; font-weight: bold; cursor: pointer; background: #fff; font-size: 16px; flex-shrink: 0; }
#ccw_prefix_list { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border: 1px solid #ddd; border-radius: 10px; display: none; z-index: 100; list-style: none; padding: 0; margin: 5px 0 0 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
#ccw_prefix_list li { padding: 12px; border-bottom: 1px solid #eee; }
#ccw_prefix_list li:hover { background: #f4a261; color: #fff; }
.ccw-v33-opt { border: 1px solid #ddd; border-radius: 15px; padding: 18px; margin-bottom: 12px; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 15px; transition: all 0.3s; width: 100%; box-sizing: border-box; }
.ccw-v33-opt.active { border: 2px solid #1a2b48; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.ccw-v33-opt-icon { font-size: 22px; color: #f4a261; background: #fff5f0; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.ccw-v33-opt-text { text-align: right; flex: 1; }
.ccw-v33-opt-text strong { display: block; font-size: 17px; color: #1a2b48; }
.ccw-v33-opt-text small { color: #888; font-size: 13px; }
.ccw-v33-sub-info { background: #fcfcfc; border: 1px dashed #ccc; border-radius: 15px; padding: 20px; margin-bottom: 15px; width: 100%; box-sizing: border-box; }
.ccw-v33-workshop-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ccw-v33-workshop-heading__title { font-weight: 700; font-size: 16px; color: #1a2b48; line-height: 1.4; }
.ccw-workshop-sort-by-location { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff5f0; color: #F97316; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity 0.2s ease, transform 0.2s ease; }
.ccw-workshop-sort-by-location:hover { opacity: 0.85; }
.ccw-workshop-sort-by-location:disabled { opacity: 0.55; cursor: wait; }
.ccw-workshop-sort-by-location.is-loading { animation: ccw-workshop-sort-pulse 0.9s ease-in-out infinite; }
.ccw-workshop-sort-by-location__icon { display: block; }
.ccw-workshop-sort-status-wrap { margin: -6px 0 12px; min-height: 1.25em; }
.ccw-workshop-sort-status { font-size: 12px; color: #7d7d7d; line-height: 1.45; display: block; }
.ccw-workshop-sort-status.is-success { color: #2e7d32; }
.ccw-workshop-sort-status.is-error { color: #c0392b; }
.ccw-v33-workshop-distance { color: #F97316 !important; font-weight: 700; }
@keyframes ccw-workshop-sort-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.94); }
}
.ccw-v33-workshop-card { background: #fff; border: 1px solid #eee; border-radius: 30px; padding: 12px 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); width: 100%; box-sizing: border-box; }
.ccw-v33-workshop-list { display: flex; flex-direction: column; gap: 12px; }
.ccw-v33-workshop-option { display: block; cursor: pointer; }
.ccw-v33-workshop-option input[type="radio"] { display: none; }
.ccw-v33-workshop-text { display: flex; flex-direction: column; text-align: right; gap: 3px; flex: 1; }
.ccw-v33-workshop-text strong { color: #1a2b48; font-size: 16px; }
.ccw-v33-workshop-text small { color: #888; font-size: 13px; }
.ccw-v33-workshop-option input[type="radio"]:checked + .ccw-v33-workshop-card { border: 2px solid #1a2b48; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.ccw-v33-no-workshops { color: #888; font-size: 14px; text-align: center; padding: 10px; }
#ccw_addr { width: 100% !important; min-height: 120px; display: block; }
@media (min-width: 768px) {
    .woocommerce-checkout { display: flex; flex-direction: row-reverse; gap: 0px; align-items: flex-start; }
    #customer_details { flex: 1; width: 60% !important; }
    .woocommerce-checkout-review-order { width: 100% !important; }
    .ccw-v33-main-container { width: 100% !important; }
    .ccw-v33-box { width: 100% !important; }
    .col-1, .col-2 { width: 100% !important; float: none !important; }
}
#place_order { background: #e9c46a !important; color: #fff !important; border-radius: 15px !important; padding: 18px !important; font-size: 20px !important; font-weight: bold !important; box-shadow: 0 4px 15px rgba(233,196,106,0.3) !important; width: 100% !important; }
.woocommerce-billing-fields, .woocommerce-shipping-fields, .shipping, .woocommerce-additional-fields__field-wrapper { display: none !important; }
.woocommerce-additional-fields h3 { display: none !important; }

/* Checkout only: hide notice action link/icon (visual cleanup only). */
.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message .wc-forward {
    display: none !important;
}
.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
    content: none !important;
}

/* Checkout only: hide coupon prompt block entirely. */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}

/* Contact heading only: orange user icon before title text. */
.ccw-v33-main-container .ccw-v33-box:first-child .ccw-v33-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ccw-v33-main-container .ccw-v33-box:first-child .ccw-v33-title .ccw-contact-icon {
    order: -1;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #fff5f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ccw-v33-main-container .ccw-v33-box:first-child .ccw-v33-title .ccw-contact-icon svg {
    width: 24px;
    height: 24px;
    fill: #ff7300;
    display: block;
}
.ccw-v33-main-container .ccw-v33-box:first-child .ccw-v33-title .ccw-contact-icon i {
    font-size: 22px;
    color: #ff7300 !important;
    line-height: 1;
}
.ccw-v33-main-container .ccw-v33-box:nth-child(2) .ccw-v33-title .icon {
    order: -1;
}
.ccw-v33-main-container .ccw-v33-box:first-child.ccw-contact-complete {
    border-color: #ff7300 !important;
    box-shadow: 0 0 0 1px #ff7300 !important;
}

/* Contact fields: black border glow only when filled/focused. */
.woocommerce-checkout #ccw_name:focus,
.woocommerce-checkout #ccw_phone:focus,
.woocommerce-checkout #ccw_name.ccw-has-value,
.woocommerce-checkout #ccw_phone.ccw-has-value,
.woocommerce-checkout #ccw_name:not(:placeholder-shown),
.woocommerce-checkout #ccw_phone:not(:placeholder-shown) {
    border-color: #000 !important;
    box-shadow: 0 0 0 1px #000 !important;
    outline: none !important;
    background: #fff !important;
}

/* Notice shown when the typed phone differs from the saved primary. */
.woocommerce-checkout .ccw-extra-phone-note {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

/* Order review cards: see awtar-checkout-order-cards.css */
