/* DFADeals Shopping Cart — scoped to body.dfa-cart-page */

body.dfa-cart-page {
  --dfa-red: #E30613;
  --dfa-black: #111111;
  --dfa-muted: #6b6b70;
  --dfa-border: #E8E8EC;
  --dfa-wash: #F7F7F8;
  --dfa-card: #ffffff;
  --dfa-radius: 18px;
  --dfa-site-max: 1120px;
  background: var(--dfa-wash);
  color: var(--dfa-black);
  overflow-x: hidden;
}

html:has(body.dfa-cart-page) {
  overflow-x: hidden;
}

body.dfa-cart-page #column-left,
body.dfa-cart-page #column-right,
body.dfa-cart-page .breadcrumb {
  display: none !important;
}

body.dfa-cart-page #content {
  width: 100%;
  max-width: 100%;
  float: none;
}

body.dfa-cart-page .dfa-footer {
  border-radius: 0;
  overflow: visible;
  margin-top: 24px;
}

body.dfa-cart-page .dfa-footer::before {
  display: none;
}

.dfa-cart-shell {
  max-width: var(--dfa-site-max);
  margin: 0 auto;
  padding: 12px 16px 32px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Open Sans", Arial, sans-serif;
}

.dfa-cart-shell *,
.dfa-cart-shell *::before,
.dfa-cart-shell *::after {
  box-sizing: border-box;
}

.dfa-cart-shell.is-updating {
  pointer-events: none;
  opacity: 0.72;
}

.dfa-cart-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.dfa-cart-alert {
  margin: 0 0 12px;
  border-radius: 12px;
}

.dfa-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dfa-cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  margin: 0 0 12px;
  background: var(--dfa-card);
  border: 1px solid var(--dfa-border);
  border-radius: var(--dfa-radius);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.dfa-cart-item-image {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  background: #F3F3F5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dfa-cart-item-image a,
.dfa-cart-item-image-empty {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.dfa-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dfa-cart-item-body {
  min-width: 0;
}

.dfa-cart-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dfa-cart-item-info {
  min-width: 0;
  flex: 1;
}

.dfa-cart-item-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dfa-cart-item-name a {
  color: var(--dfa-black);
  text-decoration: none;
}

.dfa-cart-item-name a:hover,
.dfa-cart-item-name a:focus-visible {
  color: var(--dfa-red);
}

.dfa-cart-item-name a:focus-visible {
  outline: 2px solid var(--dfa-red);
  outline-offset: 2px;
}

.dfa-stock-warn {
  color: var(--dfa-red);
}

.dfa-cart-item-variant,
.dfa-cart-item-meta {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  color: var(--dfa-muted);
  font-size: 13px;
  line-height: 1.4;
}

.dfa-cart-item-our {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.dfa-cart-item-msrp {
  margin: 0 0 2px;
  color: var(--dfa-muted);
  font-size: 13px;
}

.dfa-cart-item-msrp s {
  text-decoration: line-through;
}

.dfa-cart-item-save {
  margin: 0 0 8px;
  color: var(--dfa-red);
  font-size: 13px;
  font-weight: 700;
}

.dfa-cart-item-total {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.dfa-cart-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dfa-qty-control {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.dfa-qty-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--dfa-black);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.dfa-qty-btn:hover,
.dfa-qty-btn:focus-visible {
  color: var(--dfa-red);
}

.dfa-qty-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--dfa-red);
}

.dfa-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dfa-qty-input {
  width: 44px;
  height: 44px;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 0;
  background: transparent;
  -moz-appearance: textfield;
}

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

.dfa-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--dfa-red);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.dfa-remove:hover,
.dfa-remove:focus-visible {
  text-decoration: underline;
  outline: none;
}

.dfa-remove:focus-visible {
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.35);
  border-radius: 8px;
}

.dfa-item-warning {
  width: 100%;
  margin: 8px 0 0;
  color: var(--dfa-red);
  font-size: 12px;
}

.dfa-ship-progress {
  margin: 4px 0 16px;
  padding: 14px;
  background: #FFF1F3;
  border: 1px solid #F8D0D5;
  border-radius: var(--dfa-radius);
}

.dfa-ship-progress-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dfa-ship-progress-copy > i {
  color: var(--dfa-red);
  font-size: 18px;
  margin-top: 2px;
}

.dfa-ship-progress-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.dfa-ship-progress-support {
  margin: 0;
  color: var(--dfa-muted);
  font-size: 12px;
  font-weight: 600;
}

.dfa-ship-progress-bar {
  margin-top: 10px;
  height: 8px;
  background: #f7c9cf;
  border-radius: 999px;
  overflow: hidden;
}

.dfa-ship-progress-bar span {
  display: block;
  height: 100%;
  background: var(--dfa-red);
  border-radius: 999px;
}

.dfa-cart-extras-title {
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.dfa-estimate {
  background: var(--dfa-card);
  border: 1px solid var(--dfa-border);
  border-radius: var(--dfa-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.dfa-estimate-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.dfa-estimate-toggle:focus-visible {
  outline: 2px solid var(--dfa-red);
  outline-offset: -2px;
}

.dfa-estimate-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dfa-estimate-left i {
  color: var(--dfa-red);
}

.dfa-estimate-chevron {
  color: #bbb;
  transition: transform 0.2s ease;
}

.dfa-estimate.is-open .dfa-estimate-chevron {
  transform: rotate(90deg);
}

.dfa-estimate-panel {
  padding: 0 14px 14px;
}

.dfa-estimate-fields {
  display: grid;
  gap: 10px;
}

.dfa-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.dfa-field .form-control,
.dfa-promo-input {
  height: 44px;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid #d9d9de;
}

.dfa-field .form-control:focus,
.dfa-promo-input:focus {
  border-color: var(--dfa-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.dfa-estimate-submit,
.dfa-promo-apply {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--dfa-red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  padding: 0 18px;
}

.dfa-estimate-submit:hover,
.dfa-estimate-submit:focus-visible,
.dfa-promo-apply:hover,
.dfa-promo-apply:focus-visible {
  background: #c40018;
  outline: none;
}

.dfa-quote-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0;
}

.dfa-quote-title {
  margin: 12px 0 4px;
  font-weight: 700;
}

.dfa-estimate-msg,
.dfa-promo-msg {
  margin: 8px 0 0;
  font-size: 13px;
}

.dfa-estimate-msg.is-error,
.dfa-promo-msg.is-error {
  color: var(--dfa-red);
}

.dfa-estimate-msg.is-ok,
.dfa-promo-msg.is-ok {
  color: #1b7a3d;
}

.dfa-promo {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.dfa-promo-input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
}

.dfa-promo-applied {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.dfa-promo-applied li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.dfa-promo-clear {
  border: 0;
  background: none;
  color: var(--dfa-red);
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
}

.dfa-cart-summary {
  background: var(--dfa-card);
  border: 1px solid var(--dfa-border);
  border-radius: var(--dfa-radius);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  padding: 18px 16px;
}

.dfa-summary-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
}

.dfa-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dfa-border);
  font-size: 14px;
}

.dfa-total-pending {
  color: var(--dfa-muted);
  font-size: 13px;
}

.dfa-total-save {
  color: var(--dfa-red);
}

.dfa-total-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #FFF1F3;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.dfa-total-grand strong {
  color: var(--dfa-red);
  font-size: 20px;
  font-weight: 800;
}

.dfa-btn-checkout {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 14px 20px;
  background: var(--dfa-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
}

.dfa-btn-checkout:hover,
.dfa-btn-checkout:focus-visible {
  background: #c40018;
  color: #fff !important;
}

.dfa-btn-checkout:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.35);
}

.dfa-checkout-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--dfa-muted);
}

.dfa-btn-continue {
  display: block;
  margin: 10px auto 0;
  text-align: center;
  color: var(--dfa-black);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px;
}

.dfa-btn-continue:hover,
.dfa-btn-continue:focus-visible {
  color: var(--dfa-red);
}

.dfa-cart-pays {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dfa-cart-page .dfa-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.dfa-cart-empty {
  background: var(--dfa-card);
  border: 1px solid var(--dfa-border);
  border-radius: var(--dfa-radius);
  padding: 48px 20px;
  text-align: center;
}

.dfa-cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #FFF1F3;
  color: var(--dfa-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.dfa-cart-empty-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.dfa-cart-empty-help {
  margin: 0 0 20px;
  color: var(--dfa-muted);
}

.dfa-cart-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--dfa-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
}

.dfa-cart-empty-btn:hover,
.dfa-cart-empty-btn:focus-visible {
  background: #c40018;
  color: #fff !important;
}

body.dfa-cart-page:not(.ws-page):has(#dfa-cart-sticky) {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

body.dfa-cart-page:not(.ws-page):has(#dfa-cart-sticky) .dfa-footer {
  margin-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

body.dfa-cart-page:not(.ws-page) .dfa-cart-sticky {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: #fff;
  border-top: 1px solid var(--dfa-border);
  box-shadow: 0 -4px 16px rgba(17, 17, 17, 0.06);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
}

.dfa-cart-sticky-label {
  display: block;
  font-size: 11px;
  color: var(--dfa-muted);
  font-weight: 700;
}

.dfa-cart-sticky-total {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.dfa-cart-sticky-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 124px;
  padding: 10px 20px;
  background: var(--dfa-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
}

.dfa-cart-sticky-btn:hover,
.dfa-cart-sticky-btn:focus-visible {
  background: #c40018;
  color: #fff !important;
}

.dfa-btn-checkout-desktop {
  display: none !important;
}

@media (min-width: 992px) {
  .dfa-cart-shell {
    padding: 20px 24px 48px;
  }

  .dfa-cart-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    gap: 24px;
  }

  .dfa-cart-summary-wrap {
    position: sticky;
    top: 16px;
  }

  .dfa-cart-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .dfa-cart-item-image {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 359px) {
  .dfa-cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 12px;
  }

  .dfa-cart-item-image {
    width: 72px;
    height: 72px;
  }

}
