/* Algerian COD Checkout v0.2.0 */
@import url('https://unpkg.com/feather-icons@4.29.0/dist/feather.css');

/* ACC Variations System - Loading States and Optimizations */

.acc-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.acc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: acc-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes acc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.acc-variation-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #999;
}

.acc-variation-btn.disabled:hover {
    background-color: #f5f5f5;
    color: #999;
}

/* Progressive filtering feedback */
.acc-attribute.updating {
    position: relative;
}

.acc-attribute.updating .acc-variation-buttons {
    opacity: 0.7;
}

/* Price loading state */
.acc-product-price.loading {
    position: relative;
}

.acc-product-price.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1px solid #f3f3f3;
    border-top: 1px solid #3498db;
    border-radius: 50%;
    animation: acc-spin 0.8s linear infinite;
}

/* Smooth transitions */
.acc-variation-btn {
    transition: all 0.2s ease-in-out;
}

.acc-product-price {
    transition: opacity 0.2s ease-in-out;
}

/* Error states */
.acc-variation-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.acc-variation-error.show {
    display: block;
}

.acc-checkout-box {
  border: 3px dashed #EBF0F4;
  padding: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  background: #fcfcfc;
  border-radius: 16px;
  direction: rtl; /* Arabic friendly */
  text-align: right;
  font-family: 'Rubik', sans-serif; /* Default fallback - will be overridden by dynamic CSS */
  display: block;
  float: none;
  clear: both;
  box-sizing: border-box;
}

/* Ensure all form elements inherit the font */
.acc-checkout-box *,
.acc-checkout-box input,
.acc-checkout-box select,
.acc-checkout-box button,
.acc-checkout-box label,
.acc-checkout-box span,
.acc-form-title {
  font-family: inherit !important;
}

/* Input with icons */
.acc-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #EBF0F4;
  border-radius: 8px;
  background: #fff;
  height: 50px;
  overflow: hidden;
}

.acc-input-with-icon i {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  width: 44px;
  pointer-events: none;
  z-index: 2;
  stroke-width: 1.5;
  padding: 12px;
  background-color: #EBF0F4;
  border-left: 1px solid #0F172A;
  border-radius: 12px 0 0 12px;
}

.acc-input-with-icon input,
.acc-input-with-icon select {
  width: 100%;
  padding: .75rem 15px .75rem 55px;
  border: none !important;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
  height: 50px;
  background: transparent;
  color: #0F172A;
  outline: none;
}

.acc-input-with-icon:focus-within {
  border-color: #0F172A;
  box-shadow: none;
}

/* Variation buttons */
.acc-variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.acc-variation-btn {
  padding: 8px 12px;
  border: 2px solid #e3e3e3;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  transition: all 0.2s ease;
  min-width: 32px;
  text-align: center;
}

.acc-variation-btn:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.acc-variation-btn.selected {
  border-color: #0F172A;
  background: #0F172A;
  color: #fff;
}

.acc-variation-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

/* Quantity controls */
.acc-quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid #EBF0F4;
  border-radius: 12px;
  width: fit-content;
  margin-top: 8px;
  background: #fff;
}
.merchant-payment-logos {
  display: none!important;
}

.acc-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border: none;
  background: transparent !important;
  color: #0F172A !important;
  font-family: 'Rubik', sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Remove spinner arrows from number input */
.acc-qty-input::-webkit-outer-spin-button,
.acc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Keep existing styles - but prevent double margins on nested acc-field elements */
.acc-checkout-box .acc-field { margin-bottom: 1rem; }
.acc-checkout-box .acc-field .acc-field { margin-bottom: 0; }

/* Remove margins from input containers to prevent double spacing */
.acc-input-with-icon,
.acc-2nd-div {
  margin-bottom: 0 !important;
}

/* Remove all focus shadows from form elements */
.acc-checkout-box input:focus,
.acc-checkout-box select:focus,
.acc-checkout-box textarea:focus,
.acc-input-with-icon:focus,
.acc-input-with-icon:focus-within,
.acc-2nd-div:focus,
.acc-2nd-div:focus-within,
.acc-checkout-box input[type=text]:focus,
.acc-checkout-box input[type=tel]:focus,
.acc-checkout-box input[type=number]:focus,
.acc-checkout-box select:focus {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  outline: none !important;
}

.acc-fields-row {
  display: flex;
  flex-direction: column;
}
.acc-fields-row .acc-field {
  width: 100%;
}

/* Regular fields without icons */
.acc-checkout-box input[type=text],
.acc-checkout-box input[type=tel],
.acc-checkout-box input[type=number],
.acc-checkout-box select {
  width: 100%;
  padding: .75rem;
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
  height: 50px;
  color: #0F172A;
  background: #fff;
  position: relative;
  border-color: #fff;
}

/* Dropdown arrows for select elements */
.acc-checkout-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: 2% 50%;
  background-size: 20px;
  padding-left: 40px;
}

/* Select elements with icons (wilaya field) */
.acc-input-with-icon select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: 2% 50%;
  background-size: 20px;
  padding-left: 40px;
}

/* Force chevrons visible and positioned in all layouts */
.acc-checkout-box select,
.acc-input-with-icon select,
.acc-2nd-div select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-size: 20px !important;
  background-position: 2% 50% !important;
}

/* RTL: arrow on the left with spacing */
.acc-checkout-box:not(.acc-ltr) select,
.acc-checkout-box:not(.acc-ltr) .acc-input-with-icon select,
.acc-checkout-box:not(.acc-ltr) .acc-2nd-div select {
  background-position: 2% 50% !important;
  padding-left: 40px !important;
}


/* Label styling */
.acc-checkout-box label,
.acc-field-label { 
  font-size: .9rem; 
  margin-right: .5rem; 
  font-family: 'Rubik', sans-serif;
  color: #0F172A !important;
  font-weight: 500;
}

.acc-color-options label,
.acc-size-options label,
.acc-delivery-option { margin-inline-end: 1rem; white-space: nowrap; }
.acc-total-row { font-size: 1.05rem; margin-top: 1.25rem; font-family: 'Rubik', sans-serif; }
.acc-total-row strong { margin-left: .5rem; }
.acc-submit-btn {
  width: 65%;
  padding: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background: #0F172A;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-text {
  font-weight: 500;
}


.acc-response { margin-top: 1rem; font-weight: 600; font-family: 'Rubik', sans-serif; }
.acc-response.error { color: #c00; }
.acc-response.success { color: #090; }
.acc-order-summary {
  margin-top: 1rem;
}

/* Add dividers between summary items */
.acc-summary-item {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.acc-summary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.acc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.acc-summary-item .summary-item-title {
    margin: 0;
    flex: 1;
    font-family: 'Rubik', sans-serif;
    color: #0F172A;
    display: flex;
    align-items: center;
}
.Summary-item-title {
  font-family: 'Rubik', sans-serif;
  color: #0F172A;
} 
.acc-product-price, .acc-shipping-price, .acc-total-price {
  font-family: 'Rubik', sans-serif;
  color: #0F172A;
  font-weight: 500;
}

/* Total amount styling - make it black and font-weight 500 like product price */
.acc-total-estimate {
  font-family: 'Rubik', sans-serif;
  color: #0F172A !important;
  font-weight: 500 !important;
}

/* Order Summary Dropdown Styles */
.acc-order-summary-dropdown {
  margin-top: 1rem;
  border: 2px solid #EBF0F4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.acc-summary-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background: #F8F9FA;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #EBF0F4;
}

.acc-summary-toggle:hover {
  background: #F3F4F6;
}

.acc-summary-toggle-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-summary-toggle-content i {
  color: #0F172A;
  stroke-width: 1.5;
}

.acc-summary-toggle-text {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  color: #0F172A;
  font-size: 1rem;
}

.acc-summary-toggle-icon {
  color: #666;
  transition: transform 0.2s ease;
  stroke-width: 1.5;
}

.acc-summary-toggle.open .acc-summary-toggle-icon {
  transform: rotate(180deg);
}

.acc-summary-content {
  padding: 1rem;
  background: #fff;
}

.acc-summary-content .acc-summary-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.acc-summary-content .acc-summary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  font-weight: 600;
}

.acc-shipping-options {
  gap: 8px;
  DISPLAY: FLEX;
  flex-flow: column;
}

.acc-loading-shipping {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.acc-no-shipping {
    color: #c00;
    text-align: center;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}
.acc-delivery-option {
  padding: 16px;
  border-radius: 8px;
  background-color: #F3F4F6;
  color: #0F172A;
}

.acc-delivery-label {
  margin-right: 4px;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
}
.acc-delivery-option.selected {
  border: 2px solid #0F172A;
}
.acc-submit-btn {
  margin-bottom: .5rem;
  animation: shake-every-5s 5s infinite;
  position: relative;
  transition: all 0.2s ease;
}

/* Loading state for submit button */
.acc-submit-btn.submitting {
  opacity: 0.7;
  cursor: not-allowed;
  animation: none;
}

.acc-submit-btn.submitting .btn-text {
  position: relative;
}

.acc-submit-btn.submitting .btn-text::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* WhatsApp Button Styling */
.acc-whatsapp-row {
  margin-bottom: 1rem;
}

.acc-whatsapp-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  border-radius: 8px !important;
  background: #25D366 !important;
  color: #fff !important;
  font-family: 'Rubik', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

.acc-whatsapp-btn:hover {
  background: #128C7E !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.acc-whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}

.acc-whatsapp-btn i {
  stroke-width: 2;
  width: 20px;
  height: 20px;
}

.acc-whatsapp-btn .btn-text {
  font-weight: 500;
  font-size: 16px;
}

/* Shipping methods dropdown styling */
.acc-shipping-dropdown {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB !important;
  border-radius: 12px !important;
  background: #fff;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #0F172A;
  transition: all 0.3s ease;
  cursor: pointer;
}

.acc-shipping-dropdown:focus {
  outline: none;
  border-color: #D1D5DB;
  box-shadow: 0 0 0 3px rgba(143, 67, 233, 0.1);
}

.acc-shipping-dropdown:hover {
  border-color: #D1D5DB;
}

/* Shake animation keyframes */
@keyframes shake-every-5s {
  /* Extend visible shake to ~1s of the 5s cycle and increase amplitude a bit */
  0%, 90% { transform: translateX(0); }
  92% { transform: translateX(-6px); }
  94% { transform: translateX(6px); }
  96% { transform: translateX(-4px); }
  98% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(10px); }
}
.acc-color-options label, .acc-size-options label, .acc-delivery-option {
      margin-inline-end: 0rem!important;
}
.acc-checkout-box label {
  margin-right: 0px!important;
  width: auto;
}
.acc-form-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0F172A;
  font-family: 'Rubik', sans-serif;
}

.acc-variation-btn:hover {
color: #EBF0F4;
}
.acc-input-with-icon {
  padding-right: 12px;
  border-width: 1px;
  border-color: #EBF0F4;
}
.woocommerce-js form .form-row textarea, .woocommerce-js input[type=email], .woocommerce-js input[type=number], .woocommerce-js input[type=password], .woocommerce-js input[type=reset], .woocommerce-js input[type=search], .woocommerce-js input[type=tel], .woocommerce-js input[type=text], .woocommerce-js input[type=url], .woocommerce-js textarea, .woocommerce-page form .form-row textarea, .woocommerce-page input[type=email], .woocommerce-page input[type=number], .woocommerce-page input[type=password], .woocommerce-page input[type=reset], .woocommerce-page input[type=search], .woocommerce-page input[type=tel], .woocommerce-page input[type=text], .woocommerce-page input[type=url], .woocommerce-page textarea {
  background-color: transparent!important;
}

.acc-checkout-box input[type=text], 
.acc-checkout-box input[type=tel], 
.acc-checkout-box input[type=number] {
  background-color: transparent!important;
}

/* acc-2nd-div styling (for commune field without icon) */
.acc-2nd-div {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #EBF0F4;
  border-radius: 8px;
  background: #fff;
  height: 50px;
  overflow: hidden;
}

.acc-2nd-div select {
  width: 100%;
  padding: .75rem 15px;
  border: none !important;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
  height: 50px;
  background-color: transparent;
  color: #0F172A;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: 2% 50%;
  background-size: 20px;
  padding-left: 40px;
}

.acc-2nd-div:focus-within {
  border-color: #0F172A;
  box-shadow: none;
}

/* Remove conflicting styles from regular select focus */
.acc-2nd-div select:focus {
  box-shadow: none !important;
  border: none !important;
}

/* Combined quantity and submit button row */
.acc-quantity-submit-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  flex-direction: column;
}

.acc-quantity-submit-row .acc-quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid #EBF0F4;
  border-radius: 12px;
  width: 100%;
  background: #fff;
  margin: 0;
}

.acc-quantity-submit-row .acc-submit-btn {
  flex: auto;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  background: #0F172A;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  animation: shake-every-5s 5s infinite;
  min-height: 60px;
}

.acc-quantity-submit-row .acc-qty-btn {
  width: 28px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-quantity-submit-row .acc-qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border: none;
  background: transparent !important;
  color: #0F172A !important;
  font-family: 'Rubik', sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Ensure input text is always visible */
.acc-quantity-submit-row .acc-qty-input:focus,
.acc-quantity-submit-row .acc-qty-input:active,
.acc-quantity-submit-row .acc-qty-input:hover {
  color: #0F172A !important;
  background: transparent !important;
}

/* Remove spinner arrows from number input */
.acc-quantity-submit-row .acc-qty-input::-webkit-outer-spin-button,
.acc-quantity-submit-row .acc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Comprehensive quantity input text visibility override */
input[name="acc_quantity"],
input.acc-qty-input,
.acc-quantity-controls input,
.acc-quantity-submit-row input[type="number"] {
  color: #0F172A !important;
  background: transparent !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  font-family: 'Rubik', sans-serif !important;
  border: none !important;
  outline: none !important;
  -webkit-text-fill-color: #0F172A !important;
  opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .acc-quantity-submit-row {
    flex-direction: column!important;
    gap: 10px;
  }
  
}

/* Font family inheritance override - ensures dynamic font is applied everywhere */
.acc-checkout-box,
.acc-checkout-box *,
.acc-checkout-box input,
.acc-checkout-box select,
.acc-checkout-box button,
.acc-checkout-box label,
.acc-checkout-box span,
.acc-checkout-box div,
.acc-checkout-box p,
.acc-form-title,
.acc-field-label,
.acc-variation-btn,
.acc-qty-btn,
.acc-qty-input,
.acc-submit-btn,
.acc-delivery-option,
.acc-product-price,
.acc-shipping-price,
.acc-total-estimate,
.acc-response,
.acc-summary-item,
.acc-order-summary-dropdown,
.acc-summary-toggle,
.acc-summary-toggle-text,
.acc-summary-content {
  font-family: inherit !important;
}

/* Remove hardcoded font references from specific elements */
.acc-checkout-box .btn-text {
  font-family: inherit !important;
  font-size: 16px;
}

/* Ensure dropdown chevrons are always visible (do not override background-image) */
/* Intentionally no override here so the data-URI chevron stays applied in RTL and LTR */

/* Ensure dynamic icon colors override static ones */
.acc-input-with-icon i[style*="color"] {
  color: inherit !important;
}

/* Comprehensive SVG icon color targeting for Feather icons */
.acc-input-with-icon i svg,
.acc-input-with-icon svg,
.acc-input-with-icon [data-feather],
svg[data-feather] {
  color: inherit !important;
  stroke: #0F172A  !important;
}

/* Ensure all Feather icons in the form use currentColor */
.acc-checkout-box svg:not(:root),
.acc-checkout-box [data-feather] {
  overflow: hidden;
  color: inherit !important;
  stroke: #0F172A  !important;
}
.woocommerce-js form .form-row textarea, .woocommerce-js input[type=email], .woocommerce-js input[type=number], .woocommerce-js input[type=password], .woocommerce-js input[type=reset], .woocommerce-js input[type=search], .woocommerce-js input[type=tel], .woocommerce-js input[type=text], .woocommerce-js input[type=url], .woocommerce-js textarea, .woocommerce-page form .form-row textarea, .woocommerce-page input[type=email], .woocommerce-page input[type=number], .woocommerce-page input[type=password], .woocommerce-page input[type=reset], .woocommerce-page input[type=search], .woocommerce-page input[type=tel], .woocommerce-page input[type=text], .woocommerce-page input[type=url], .woocommerce-page textarea {
  background-color: transparent !important;
  float: right;
  text-align: right;
}
.acc-checkout-box input[type=text], .acc-checkout-box input[type=tel], .acc-checkout-box input[type=number], .acc-checkout-box select {
  text-align: right;
}
.woocommerce-js .select2-container .select2-selection--single, .woocommerce-js select, .woocommerce-page .select2-container .select2-selection--single, .woocommerce-page select {
background-position: 2% 50%;
}
/* WooCommerce cart visibility now controlled via settings */
.acc-checkout-box,
.acc-checkout-box * {
  font-family: 'Rubik', Arial, sans-serif;
}
.acc-field.acc-delivery-methods {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Optional: space between items */
}
.Summary-item-title {
font-family: 'Rubik', sans-serif;
color: #64748B;
}
.acc-product-price, .acc-shipping-price, .acc-total-price {
font-family: 'Rubik', sans-serif;
color: #1b1b1b;
font-weight: 500;
}
.acc-delivery-option {
padding: 16px;
border-radius: 8px;
background-color: #F3F4F6;
color: #111;
}
.acc-delivery-option.selected {
border: 2px solid #1b1b1b;
}
.acc-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Optional: vertically centers content */
  gap: 10px; /* Optional: space between flex children */
}

/* Attribute Groups Styling */
.acc-attribute-group {
  margin-bottom: 20px;
}

.acc-attribute-label {
  display: block;
  font-weight: 500;
  color: #0F172A;
  font-size: 14px;
  margin-bottom: 8px;
}

.acc-attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acc-attribute-option {
  display: flex;
  align-items: center;
  padding: 6px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 60px;
  justify-content: center;
}

.acc-attribute-option input[type="radio"] {
  display: none;
}

.acc-attribute-text {
  font-weight: 500;
  color: #0F172A;
  font-size: 13px;
  text-align: center;
}

/* Hover State - exclude color swatches */
.acc-attribute-option:hover:not(.disabled):not(.acc-color-swatch) {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

/* Selected State - exclude color swatches */
.acc-attribute-option.selected:not(.acc-color-swatch) {
  background: #0F172A;
  border-color: #0F172A;
  color: white;
}

.acc-attribute-option.selected:not(.acc-color-swatch) .acc-attribute-text {
  color: white;
}

/* Color swatches should not have background/border changes when selected */
.acc-color-swatch.selected {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
}

.acc-color-swatch.selected .acc-attribute-text {
  color: inherit;
}

/* Enhanced Disabled State with strikethrough */
.acc-attribute-option.disabled {
  background: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
}

.acc-attribute-option.disabled .acc-attribute-text {
  color: #adb5bd;
  text-decoration: line-through;
}

/* Loading and No Variations States */
.acc-loading-variations,
.acc-no-variations {
  text-align: center;
  padding: 16px;
  color: #6c757d;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

/* Color Swatch Styling */
.acc-color-swatch {
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 60px;
  padding: 8px 12px;
  border: none !important;
  background: transparent !important;
}

.acc-color-swatch-circle {
  border-radius: 50%;
  border: 2px solid #e9ecef;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.acc-color-swatch:hover:not(.disabled) .acc-color-swatch-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.acc-color-swatch.selected .acc-color-swatch-circle {
  border-color: #0F172A;
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.acc-color-swatch.disabled .acc-color-swatch-circle {
  opacity: 0.4;
  filter: grayscale(100%);
}

.acc-color-swatch .acc-attribute-text {
  font-size: 11px;
  line-height: 1.2;
}

/* Responsive Design for Attributes */
@media (max-width: 480px) {
  .acc-attribute-options {
    justify-content: right;
  }
  
  .acc-attribute-option {
    min-width: 40px;
    flex: 0 0 auto;
  }
  
  .acc-color-swatch {
    min-width: 50px;
    padding: 6px 8px;
  }
  
  .acc-color-swatch-circle {
    width: 28px !important;
    height: 28px !important;
  }
}

/* Coupon Field Styles */
.acc-coupon-field {
  margin: 1rem 0;
}

.acc-coupon-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.acc-coupon-input-container {
  flex: 0 0 60%;
  width: 60%;
}

.acc-coupon-apply-btn {
  flex: auto;
  padding: 0.75rem 1rem;
  background: #0F172A;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  cursor: pointer;
  height: 50px;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.acc-coupon-apply-btn:hover {
  background: #1e293b;
}

.acc-coupon-apply-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.acc-coupon-apply-btn.loading {
  position: relative;
  color: transparent;
}

.acc-coupon-apply-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: acc-spin 1s linear infinite;
}

.acc-coupon-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.acc-coupon-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.acc-coupon-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.acc-coupon-status.applied {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Discount display in order summary */
.acc-summary-item.discount {
  color: #059669;
  font-weight: 600;
}

.acc-summary-item.discount .acc-discount-amount {
  color: #059669;
}

/* Responsive adjustments for coupon field - keep row layout on all devices */
@media (max-width: 480px) {
  .acc-coupon-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }
  
  .acc-coupon-input-container {
    flex: 0 0 60%;
    width: 60%;
  }
  
  .acc-coupon-apply-btn {
    flex: 0 0 40%;
    width: 40%;
  }
}

/* Upsell Cards Styling */
.acc-upsells-box {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acc-upsell-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.acc-upsell-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.acc-upsell-card.selected {
    border-color: #4285f4;
    background: #f8f9ff;
}

.acc-upsell-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-direction: row-reverse;
}

.acc-upsell-text-content {
    flex: 1;
    text-align: right;
}

.acc-upsell-main-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.acc-upsell-sub-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.acc-delivery-badge {
    background: #22c55e;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.acc-upsell-checkmark {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.acc-upsell-card.selected .acc-upsell-checkmark {
    opacity: 1;
    transform: scale(1.1);
}

.acc-upsell-quantity {
  color: white;
  background-color: #22c55e;
  border-radius: 4px;
  margin: 0px 2px;
  display: inline-block;
  line-height: 0.5rem;
  padding: 8px;
}

.acc-upsell-checkmark i,
.acc-upsell-checkmark svg,
.acc-upsell-checkmark i[data-feather],
.acc-upsell-checkmark svg[data-feather] {
    color: white !important;
    width: 16px !important;
    height: 16px !important;
    padding: 4px !important;
    stroke: white !important;
    stroke-width: 3 !important;
    fill: none !important;
}

.acc-upsell-card.selected .acc-upsell-checkmark i,
.acc-upsell-card.selected .acc-upsell-checkmark svg {
    stroke: white !important;
    color: white !important;
}

@media (max-width: 768px) {
    .acc-upsell-card {
        width: auto;
    }
}

/* Free shipping message styling */
.acc-free-shipping-message {
    background-color: #d8ffe1;
    color: #28a745;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0;
    border: 2px dashed #1e7e34b2;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.acc-free-shipping-message::before {
    content: "🚚 ";
    margin-right: 8px;
}

/* Image Swatch Styling */
.acc-image-swatch {
    position: relative;
}

.acc-image-swatch-container {
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.acc-image-swatch-img {
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

.acc-image-swatch:hover .acc-image-swatch-container {
    border-color: #4285f4;
    transform: scale(1.05);
}

.acc-image-swatch.selected .acc-image-swatch-container {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.acc-image-swatch.disabled .acc-image-swatch-container {
    opacity: 0.5;
    cursor: not-allowed;
}

.acc-image-swatch.disabled:hover .acc-image-swatch-container {
    transform: none;
    border-color: transparent;
}

/* LTR Layout Overrides (admin setting) */
.acc-checkout-box.acc-ltr {
    direction: ltr;
    text-align: left;
}

.acc-checkout-box.acc-ltr input[type=text],
.acc-checkout-box.acc-ltr input[type=tel],
.acc-checkout-box.acc-ltr input[type=number],
.acc-checkout-box.acc-ltr select,
.acc-checkout-box.acc-ltr textarea {
    text-align: left;
}

.acc-checkout-box.acc-ltr .acc-upsell-text-content {
    text-align: left;
}

/* LTR: Attribute options align to left */
.acc-checkout-box.acc-ltr .acc-attribute-options {
    justify-content: flex-start;
}

/* LTR: Move input icons to the left and adjust paddings */
.acc-checkout-box.acc-ltr .acc-input-with-icon i {
    left: 0;
    right: auto;
    border-right: 1px solid #0F172A;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.acc-checkout-box.acc-ltr .acc-input-with-icon {
    padding-left: 12px;
    padding-right: 0;
}

.acc-checkout-box.acc-ltr .acc-input-with-icon input,
.acc-checkout-box.acc-ltr .acc-input-with-icon select {
    /* uniform padding in LTR (no extra left space) */
    padding: .75rem 15px;
}

/* LTR: Select dropdown arrow to the right */
.acc-checkout-box.acc-ltr select,
.acc-checkout-box.acc-ltr .acc-input-with-icon select,
.acc-checkout-box.acc-ltr .acc-2nd-div select {
    background-position: 98% 50% !important;
    padding-left: 15px; /* Reduce left padding to balance the spacing */
}

.acc-checkout-box.acc-ltr .acc-input-with-icon select,
.acc-checkout-box.acc-ltr .acc-2nd-div select {
    padding-right: 12px;
}

/* LTR: Image swatch margin and delivery label margin */
.acc-checkout-box.acc-ltr .acc-image-swatch-container {
    margin-left: 0;
    margin-right: 8px;
}

.acc-checkout-box.acc-ltr .acc-delivery-label {
    margin-right: 0;
    margin-left: 4px;
}

/* LTR: Adjust attribute option padding for better spacing */
.acc-checkout-box.acc-ltr .acc-attribute-option {
    padding: 6px;
}
.acc-field-editor open {
  margin-bottom: 20px;
}
button.acc-sticky-order-btn {
  width: 100%;
  height: 50px;
  color: white;
  font-family: "rubik";
}
.woocommerce-tabs {
  width: 100% !important;
}

/* Accordion Styles */
.acc-accordion { 
  margin-bottom: 14px; 
}
.acc-accordion-toggle {
  width: 100%;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  background: #f8f9fa; 
  color: #0F172A;
  border: 1px solid #e2e8f0; 
  border-radius: 8px;
  padding: 12px 14px; 
  cursor: pointer;
  font-size: 16px;
}
.acc-accordion-toggle:hover {
  background: #e2e8f0;
}
.acc-accordion-title { 
  font-weight: 600; 
}
.acc-accordion-icon { 
  transition: transform .2s ease; 
}
.acc-accordion.open .acc-accordion-icon,
.acc-accordion-toggle .acc-accordion-icon.rotated { 
  transform: rotate(180deg); 
}

/* Ensure collapsed state hides the whole form box */
.acc-accordion-content { 
  display: none; 
}