

/* Layout base */
.ase-acp-widget { display: grid; gap: 16px; }

/* Attribute rows: "Label  Select" on one line */
.ase-acp-attrs {
  display: grid;
  gap: 12px;
 
  grid-template-columns: max-content 1fr;
}

.ase-acp-attr-row {
  display: contents; 
}
.ase-acp-attr-label {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap; 
  align-self: center;  
}
.ase-acp-attr-control select {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 0px;
  background: #fff;
}

/* Bottom row: left (price + availability) | right (qty + button) */
.ase-acp-bottom {
  display: grid;
  grid-template-columns: 200px auto;
  gap: 16px;
  align-items: center;
}
.ase-acp-left { display: grid; gap: 6px; }
.ase-acp-price { font-size: 1.6rem !important; font-weight: 800; line-height: 1.2; }


.ase-acp-sku { font-size: .85rem; opacity: .7; }
.ase-acp-availability { font-size: .95rem; }
.ase-acp-availability .stock.in-stock {
  color: #1e7e34;
  font-weight: 700;
}
.ase-acp-availability .stock.out-of-stock {
  color: #b02a37;
  font-weight: 700;
}

/* CTA: qty + button */
.ase-acp-cta { display: flex; gap: 12px; align-items: center; justify-content: end;}
.ase-acp-qty {
  /* one visual element */
  display: inline-grid;
  grid-template-columns: 26px 54px 26px; /* - | input | + */
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
  
}
.ase-acp-qty button {
  height: 35px;
  width: 24px;
  border: 0;
  padding-left: 8px;
  background: transparent;
  cursor: pointer;
  border-radius: 999px; /* keep round hit area */
  font-size: 18px;
  line-height: 1;
  color: #8a8a8a;
  user-select: none;
 
}



.ase-acp-qty-input {
  height: 35px !important;
  width: auto;
  margin: 0;
  border-width: 0px !important;
  padding: 4px !important;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  outline: none;
  -moz-appearance: textfield;
}

.ase-acp-qty-input::-webkit-outer-spin-button,
.ase-acp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ase-acp-qty.is-disabled,
.ase-acp-qty button:disabled {
  opacity: .4;
  pointer-events: none;
}

@media (max-width: 480px) {
  .ase-acp-qty { grid-template-columns: 38px 56px 38px; }
  .ase-acp-qty button { height: 34px; width: 38px; font-size: 16px; }
  .ase-acp-qty-input { height: 34px; width: 56px; font-size: 16px; }
}

/* Button */
.ase-acp-add.button { padding: 10px 40px !important; border-radius: 999px !important; width:200px; display: inline-block;}
.ase-acp-add.button:before {
  content: "\f07a"; /* Font Awesome cart icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 5px;
}
.ase-acp-add.is-disabled { opacity: .5; pointer-events: none; padding: 10px 40px !important; background-color: #b2dced !important;}

/* Keep native form hidden */
.ase-acp-native { display: none !important; }

/* Responsive: stack columns on small screens */
@media (max-width: 600px) {
  .ase-acp-attr-row { grid-template-columns: 1fr; }
  .ase-acp-bottom { grid-template-columns: 1fr; gap: 12px; }
  .ase-acp-cta { justify-content: flex-start; }
}

.ase-acp-price { 
  font-size: 1.6rem; 
  font-weight: 800; 
  line-height: 1.2; 
  color: #30a610; 
}

.ase-acp-price .price{ 
  font-size: 1.6rem !important; 
  font-weight: 800 !important; 
  line-height: 1.2; 
  color: #30a610 !important; 
}

.ase-acp-price  ins{ 
  
  color: #30a610; /* new green price color */
  font-size:1.6rem !important;
}

.ase-acp-price del, .ase-acp-price.price del
{
    font-size: 14px;
    color: #666;
    font-weight: 800 !important;
    opacity: 1 !important;
}

.ase-acp-availability { font-size: 18px; display:inline-flex; font-weight: 700; }
.ase-acp-avail-prefix { font-weight: 600; margin-right: 4px; }
.ase-acp-availability .stock.in-stock { color: #30a610 !important; font-weight: 700; }
.ase-acp-availability .stock.out-of-stock { color: #b02a37; font-weight: 700; }
.ase-acp-availability .stock.on-backorder { color: #a07900; font-weight: 700; }

/* === Custom arrow for attribute selects === */
/* Wrapper prepares place for the arrow */
.ase-acp-attr-control {
  position: relative;
  align-self: center;
}

/* Hide native arrow and make room for ours */
.ase-acp-attr-control select {
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none;    /* Firefox */
  appearance: none;
  padding-right: 36px;      /* space for arrow */
  background-color: #fff;   /* ensure solid bg under arrow */
}

/* Hide legacy IE arrow (harmless in modern browsers) */
.ase-acp-attr-control select::-ms-expand {
  display: none;
}

/* Draw a chevron-down as SVG so it’s crisp on any DPI */
.ase-acp-attr-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none; /* allow clicks through to select */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;

  /* inline SVG icon (chevron-down) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Focus state for accessibility */
.ase-acp-attr-control select:focus {
  
  outline: none;
}

/* Disabled visual hint (optional) */
.ase-acp-attr-control select:disabled {
  background-color: #f7f7f7;
  color: #6ec1e4;
}

/* === Add to cart button states === */
.ase-acp-add {
  position: relative;
  transition: all .2s ease;
}


.ase-acp-add.is-loading {
  pointer-events: none;
}
.ase-acp-add.is-loading {
  position: relative; /* ensure pseudo element positions against the button */
}

.ase-acp-add.is-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: ase-spin .6s linear infinite;
  /* reset any icon font to avoid odd glyphs */
  font-family: initial;
}

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


.ase-acp-add.is-added::after {
  content: "" !important;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  /* inline SVG check */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5'/></svg>");
}

/* === View cart below the button === */

.ase-acp-viewcart {
  position: absolute;
  left: 50%;
  top: 100%;    
  transform: translateX(-50%);                  
  margin-top: 0px;
  white-space: nowrap;
  text-align: center; 
}

.ase-acp-cta.has-viewcart {
  padding-bottom: 22px;           
}


.ase-acp-viewcart a {
  display: inline-block;
  font-size: 14px;
  text-decoration: underline;
}

.ase-acp-widget .ase-acp-cta .ase-acp-add.button.added:not(.is-added)::after {
  content: none;
}

/* Button supports a second line inside */
.ase-acp-add {
  display: inline-flex;           /* stack lines inside the button */
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

/* Subline "View cart" inside the button */
.ase-acp-add .ase-acp-subline {
  display: block;
  font-size: 12px;
  text-decoration: underline;
  margin-top: 4px;
  pointer-events: auto;           
}


.ase-acp-add.is-loading::before,
.ase-acp-widget .ase-acp-cta .ase-acp-add.button.is-added::after {
 
}


.ase-acp-btn-wrap {
  position: relative;             
  display: inline-block; 
  align-items: center;
}


