/* ================================================================
   Anexly Cart Popup — acp-popup.css
   ================================================================ */

/* DM Sans — full weight range including Bold (700) used in Figma as "DM Bold/H6 · 24/32" */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --acp-accent:       #e84545;
  --acp-accent-dark:  #c73232;
  --acp-accent-soft:  #fff4f4;
  --acp-text:         #1a1a2e;
  --acp-muted:        #8a8a9a;
  --acp-border:       #e8e6e1;
  --acp-card:         #ffffff;
  --acp-green:        #22c55e;
  --acp-shadow:       0 28px 72px rgba(0,0,0,.22), 0 4px 18px rgba(0,0,0,.10);
  --acp-radius:       22px;
  --acp-radius-sm:    12px;

  /* Both heading and body use DM Sans — matching Figma "DM Bold" spec */
  --acp-font-head:    'DM Sans', sans-serif;
  --acp-font-body:    'DM Sans', sans-serif;

  /* Figma H6 spec: 24px / 32px line-height / Bold 700 */
  --acp-h6-size:      24px;
  --acp-h6-lh:        32px;
  --acp-h6-weight:    700;

  --acp-z-overlay:    99998;
  --acp-z-popup:      99999;
  --acp-transition:   0.38s cubic-bezier(.34,1.15,.64,1);
}

/* ── Overlay ─────────────────────────────────────────────────── */
#acp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 20, 0.55);
  backdrop-filter: blur(7px) saturate(0.8);
  -webkit-backdrop-filter: blur(7px) saturate(0.8);
  z-index: var(--acp-z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#acp-overlay.acp-active {
  opacity: 0.5;
  pointer-events: all;
}

.custom-checkout #woocommerce-checkout-form-coupon {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0px !important;
    margin: 0px 25px;
    border: 0px !important;
    box-shadow: none !important;
}

.custom-checkout #woocommerce-checkout-form-coupon > p.form-row.form-row-last > button {
		background: linear-gradient(180deg, rgba(236, 76, 98, 0.6) 0%, rgba(245, 121, 87, 0.6) 127.5%) !important;
		border-radius: 12px;
    font-family: DM Sans 	!important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.6;
    vertical-align: middle;
    color: white !important;
		padding: 11px 30.5px !important;
	  border: 0px !important;
}

/* ── Popup shell ─────────────────────────────────────────────── */
#acp-popup {
  position: fixed;
  z-index: var(--acp-z-popup);
  background: var(--acp-card);
  box-shadow: var(--acp-shadow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  padding: 24px 0 61px;
  border-radius: 12px !important;
  pointer-events: none;
  transition: opacity 0.32s ease, transform var(--acp-transition);
  width: 501px;
}
#acp-popup.acp-active {
  opacity: 1;
  pointer-events: all;
}

/* ── DESKTOP (≥ 601px) ───────────────────────────────────────── */
@media (min-width: 767px) {
  #acp-popup {
    top: 10%;
    right: 10%;
    width:501px;
    max-height: 88vh;
    border-radius: var(--acp-radius);
    overflow: hidden;
    /*transform: translateY(-46%) scale(0.94);*/
  }
  /*#acp-popup.acp-active {*/
  /*  transform: translateY(-50%) scale(1);*/
  /*}*/
  .acp-drag-handle { display: none !important; }
}


/* ── MOBILE (≤ 600px) ────────────────────────────────────────── */
@media (max-width: 600px) {
  #acp-popup {
      top: 32px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 92vh;
    border-radius: 26px 26px 0 0;
    overflow: hidden;
    transform: translateY(100%);
  }
  #acp-popup.acp-active {
    transform: translateY(0);
  }
}

/* ── Drag handle (mobile) ────────────────────────────────────── */
.acp-drag-handle {
  width: 42px;
  height: 4px;
  background: var(--acp-border);
  border-radius: 3px;
  margin: 11px auto 0;
  flex-shrink: 0;
  display:none;
}

/* ── Header ──────────────────────────────────────────────────── */
.acp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1.5px solid var(--acp-border);
  background: var(--acp-card);
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 24px 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid #A5A5A6;
}

.acp-title {
  font-family: var(--acp-font-head);
  font-size: 24px;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  gap: 12px;
}
.acp-count-badge {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--acp-font-head);
  min-width: 22px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  padding: 0px 7px;
  width: 24px;
  height: 24px;
  background: linear-gradient(180deg, #EC4C62 0%, #F57957 127.5%);
  border-radius: 4px;
}
.acp-count-badge.acp-bump {
  transform: scale(1.45);
}
.acp-close {
  margin-top: 0 !important;
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.acp-close svg path {
	stroke: #737175;
}

/* ── Scrollable body ─────────────────────────────────────────── */
.acp-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--acp-border) transparent;
  max-height:60vh;
}

.acp-scroll::-webkit-scrollbar { width: 4px; }
.acp-scroll::-webkit-scrollbar-thumb { background: var(--acp-border); border-radius: 4px; }

/* ── Cart items ──────────────────────────────────────────────── */
.acp-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: acpFadeIn 0.28s ease both;
}

.acp-item:nth-child(n + 2) {
	margin-top: 22px;
}
@keyframes acpFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.acp-item-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--acp-border);
}
.acp-item-info {
  flex: 1;
  min-width: 0;
}
.acp-item-name {
  font-family: 'Roboto';
  font-size: 16px;
  font-weight: 700;
  color: black;
  line-height: 1.5;
}
.acp-item-var-name {
  font-weight: 400;
}
.acp-item-price {
	font-weight: 700;
  font-size: 16px !important;
  color: black !important;
}
.acp-remove {
    position: absolute;
    right: 0;
    top: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
	font-weight: 400 !important;
    color: #737175;
    text-decoration: underline !important;
    padding: 0;
  font-family: var(--acp-font-body);
  transition: color 0.18s;
}
.acp-remove:hover { color: var(--acp-accent); }

/* Qty control */
.acp-qty {
    display: flex;
    align-items: center;
	gap: 8px;
    border: 1px solid #A5A5A6;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
	padding: 0 16px;
}

.acp-qty-btn {
  background: none;
  border: none;
  width: 16px;
  height: 16px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  font-family: var(--acp-font-head);
}
.acp-qty-btn:hover { background: #f5f3f0; }
.acp-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.acp-qty-val {
  font-family: var(--acp-font-head);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: black;
  user-select: none;
}

/* Empty state */
.acp-empty {
  text-align: center;
  padding: 36px 0 20px;
  color: var(--acp-muted);
}
.acp-empty svg { opacity: 0.3; margin-bottom: 12px; }
.acp-empty p {
  font-family: var(--acp-font-head);
  font-size: 15px;
  font-weight: 700;
}

/* ── Discount box ────────────────────────────────────────────── */
.acp-discount-box {
    border: 1px solid #EC4C62;
    border-radius: 12px;
    padding: 12px 24px;
    margin: 20px 0 0;
	box-shadow: 0px 4px 92px rgba(0, 0, 0, 0.05);
}

.acp-discount-title {
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: #111013;
    margin-bottom: 16px;
}

.acp-progress-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  margin-bottom: 4px;
  gap: 6px 32px;
}
.acp-progress-label span{
    color: black !important;
    font-weight: 500;
}
.acp-progress-label:last-child {
    color: #1DBB22 !important;
}
.acp-progress-label:last-child span {
    color: #1DBB22 !important;
}
.acp-progress-label {
    font-size: 12px;
    color: #737175;
	white-space: nowrap;
}

.acp-progress-label span { color: #737175 !important; font-weight: 400; font-size: 12px !important; }

.acp-bar-wrap {
  background-color: #FCE7E4;
  border-radius: 6px;
  height: 8px;
}

.acp-bar-fill {
  height: 100%;
  background: #F6B5AC;
  border-radius: 6px;
  transition: width 0.65s cubic-bezier(.4,0,.2,1);
  min-width: 0;
}

.acp-discount-status {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #111013;
    margin-top:24px;

}

.acp-discount-status strong {
	font-weight: 400;
}

.acp-discount-status span {
	font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px !important;
    line-height: 24px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #737175 !important;
    position: relative;
    top: -5px;
}

/* ── Section title ───────────────────────────────────────────── */
.acp-section-title {
    font-family: Roboto;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #111013;
    margin: 14px 0 8px;

}

/* ── Recommended list ────────────────────────────────────────── */
/* Desktop: 2 cards side by side, no scroll */
@media (min-width: 601px) {
  .acp-rec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
    overflow: visible;
  }
  .acp-rec-item { width: 100%; }
}
/* Mobile: vertical stack */
@media (max-width: 600px) {
  .acp-rec-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 4px;
  }
  .acp-rec-item { width: 100%; }
}

.acp-rec-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
	border: none;
	background-color: white;
  gap: 8px;
  transition: border-color 0.18s, background 0.18s, transform 0.16s;
  cursor: default;
  box-shadow: 0px 4px 92px rgba(0, 0, 0, 0.05), 0px 4px 92px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
      position: relative;

}

.acp-rec-item:hover {
  background: var(--acp-accent-soft);
}

.acp-rec-img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.acp-rec-info { flex: 1; min-width: 0; }
.acp-rec-name {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #111013;

}
.acp-rec-price {
    font-family: Roboto;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    vertical-align: middle;
    color:#111013;

}
.acp-add-btn {
  border: none;
    font-size: 20px;
    background: transparent;
	color: black;
    cursor: pointer;
      position: absolute;
    bottom: 13px;
    right: 20px;
}

/* ── Summary ─────────────────────────────────────────────────── */
.acp-summary {
  margin-top: 28px;
	padding-top: 37px;
	border-top: 0.5px solid #A5A5A6;
	background: #FFFFFF;
    border-radius:10px;
    padding:15px;
}
.acp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#acp-subtotal .woocommerce-Price-amount{
	font-size: 20px;
	color: #737175
}

#acp-discount .woocommerce-Price-amount, 
#acp-discount{
	color: #30AE65;
	font-size: 20px;
}

.acp-summary-label {
  /*color: #737175;*/
  /*font-size: 16px;*/
  /*font-family: var(--acp-font-body);*/
  
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #737175;


}
.acp-summary-val {
  color: #737175;
	font-size: 20px;
}

.acp-green { color: var(--acp-green) !important; }
.acp-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
	padding-top: 12px;
	margin-top: 8px;
	border-top: 1px solid #CCCCCC;
}
.woocommerce-Price-amount{
	font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0px;
    vertical-align: middle;
    color:#737175;
}
.acp-summary-total .woocommerce-Price-amount {
    font-family: DM Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0px;
    vertical-align: middle;
    color:#111013;
}
.acp-total-label {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0px;
    vertical-align: middle;
    color:#111013;
}
.acp-total-val {
  font-family: var(--acp-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--acp-text);
}

/* ── Footer buttons ──────────────────────────────────────────── */
.acp-btn-primary,
.acp-footer-btns {
  /*margin-top: 12px;*/
  display:flex !important;
  justify-content:center;
  align-items:center;
  gap:10px
}
.acp-btn-primary,
.acp-btn-secondary {
  /*flex: 1;*/
	/*line-height: 1.75;*/
  text-align: center;
  /*padding: 6px 24px;*/
  /*border-radius: 100px;*/
	  width: 100%;
      font-family: var(--acp-font-head) !important;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: normal;
      text-decoration: none;
      transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
      display: block;
    background: linear-gradient(180deg, #EC4C62 0%, #F57957 127.5%) !important;
	background-image: none;
	  color: #fff !important;
	  
    opacity: 1;
    gap: 8px;
    border-radius: 20px;
    padding-top: 8px;
    padding-right: 28px;
    padding-bottom: 8px;
    padding-left: 28px;

}

.acp-btn-primary:hover,
.acp-btn-secondary:hover {
  background: linear-gradient(180deg, #F57957 0%, #EC4C62 127.5%);
	font-weight: 700;
}

.acp-btn-secondary {
    background: linear-gradient(180deg, #EC4C62 0%, #F57957 127.5%) !important;
    color: white !important;
    opacity: 1;
    gap: 8px;
    border-radius: 20px;
    padding-top: 8px;
    padding-right: 28px;
    padding-bottom: 8px;
    padding-left: 28px;

}

/* ── Loading state (use class, never inline opacity — would override close transition) ── */
#acp-popup.acp-loading {
  opacity: 0.75;
}

/* ── Loading spinner ─────────────────────────────────────────── */
.acp-loader {
  text-align: center;
  padding: 28px 0;
}
.acp-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--acp-border);
  border-top-color: var(--acp-accent);
  border-radius: 50%;
  animation: acpSpin 0.7s linear infinite;
}
@keyframes acpSpin { to { transform: rotate(360deg); } }

/* ── Body lock when popup open ───────────────────────────────── */
body.acp-open {
  overflow: hidden;
}

/* ================================================================
   Anexly Custom Cart Trigger Button
   ================================================================ */

.acp-trigger-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acp-text);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  outline: none;
  padding: 0;
}

.acp-trigger-btn:hover {
  transform: scale(1.1);
  background: var(--acp-accent);
}

.acp-trigger-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--acp-accent);
}

.acp-trigger-btn svg {
  pointer-events: none;
}

.acp-trigger-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--acp-accent);
  color: #fff;
  font-family: var(--acp-font-body);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid #fff;
  transition: transform 0.2s ease;
}

.acp-trigger-btn:hover .acp-trigger-count {
  background: #fff;
  color: var(--acp-accent);
}

@media (max-width: 767px) {
  .acp-trigger-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
 
  .acp-scroll {
	max-height: 68vh;
  }
	.acp-header{
		margin: 0 24px 18px;
		padding: 0 0 12px;		
	}
}