/* ================== BEGIN WC QUICK ORDER – MODERN ================== */

:root {
  --wcqo-bg: #ffffff;
  --wcqo-border: #e5e7eb;
  --wcqo-border-focus: #111827;
  --wcqo-muted: #6b7280;
  --wcqo-text: #111827;
  --wcqo-accent: #111827;
  --wcqo-radius: 10px;
  --wcqo-radius-sm: 8px;
  --wcqo-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* Container */
.wc-quick-order-box {
  background: var(--wcqo-bg);
  border-radius: var(--wcqo-radius);
  padding: 22px 24px;
  box-shadow: var(--wcqo-shadow);
  font-family: inherit;
}

.wc-quick-order-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--wcqo-text);
}

/* ================== SUMMARY (future-ready) ================== */

.wcqo-summary-box {
  background: #f9fafb;
  padding: 14px;
  border-radius: var(--wcqo-radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--wcqo-border);
}

.wcqo-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--wcqo-muted);
}

.wcqo-total {
  font-weight: 700;
  font-size: 18px;
  color: var(--wcqo-text);
}

/* ================== FIELDS ================== */

/* === Unified field layout === */
.wcqo-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--wcqo-border);
  border-radius: var(--wcqo-radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.wcqo-field:focus-within {
  border-color: #3db3c4 !important;
  box-shadow: #3db3c4 !important;
}

/* === ICON BLOCK === */
.wcqo-icon {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff6900;
  color: #fff;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

/* Slightly darker on focus */
.wcqo-field:focus-within .wcqo-icon {
  background: #3db3c4 !important;
}

/* Icon svg */
.wcqo-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* === INPUT === */
.wcqo-field input {
  border: none !important;
  padding: 13px 14px !important;
  width: 100% !important;
  font-size: 14px !important;
  color: var(--wcqo-text) !important;
  outline: none !important;
  background: transparent !important;
  height: 100% !important;
}

.wcqo-field input::placeholder {
  color: #9ca3af;
}


/* ================== COUPON (optional) ================== */

.wcqo-coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.wcqo-coupon input {
  flex: 1;
}

.wcqo-coupon button {
  padding: 12px 14px;
  border-radius: var(--wcqo-radius-sm);
  border: 1px solid var(--wcqo-border);
  background: #fff;
  cursor: pointer;
}

/* ================== SUBMIT ================== */
/* ================== PRIMARY ACTION BUTTON ================== */

.wc-quick-order-submit,
.wcqo-submit {
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;

  background: #ff6900 !important;
  color: #ffffff !important;

  border: none;
  border-radius: var(--wcqo-radius-sm);

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.05s ease;
}

/* Hover */
.wc-quick-order-submit:hover,
.wcqo-submit:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

/* Active (click) */
.wc-quick-order-submit:active,
.wcqo-submit:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Disabled */
.wc-quick-order-submit:disabled,
.wcqo-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}


/* ================== MESSAGE ================== */

.wc-quick-order-message {
  margin-top: 12px;
  font-size: 14px;
}

.wc-quick-order-message.is-success {
  color: #065f46;
}

.wc-quick-order-message.is-error {
  color: #b91c1c;
}

/* ================== MOBILE TUNING ================== */

@media (max-width: 480px) {
  .wc-quick-order-box {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .wc-quick-order-box h3 {
    font-size: 17px;
  }
}

/* ================== END WC QUICK ORDER – MODERN ================== */



/* ================== PRODUCT HEADER ================== */

.wcqo-product-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

/* Image container */
.wcqo-product-image {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

/* Image */
.wcqo-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product info */
.wcqo-product-info {
  display: flex;
  align-items: center;
}

/* Product title */
.wcqo-product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--wcqo-text);
  line-height: 1.3;
  margin: 0;
}

/* ================== MOBILE TUNING ================== */

@media (max-width: 480px) {
  .wcqo-product-header {
    gap: 12px;
  }

  .wcqo-product-image {
    width: 64px;
    height: 64px;
  }

  .wcqo-product-title {
    font-size: 14px;
  }
}



/* ================== PRICE SUMMARY ================== */

.wcqo-price-box {
  background: #f9fafb;
  border: 1px solid var(--wcqo-border);
  border-radius: var(--wcqo-radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* Lines */
.wcqo-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--wcqo-muted);
  margin-bottom: 6px;
}

/* Divider */
.wcqo-price-divider {
  height: 1px;
  background: var(--wcqo-border);
  margin: 8px 0;
}

/* Total */
.wcqo-price-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--wcqo-text);
}

.wcqo-price-total strong {
  font-size: 18px;
}


/* ================== RELATED PRODUCTS (COMPACT) ================== */

.wcqo-related {
  margin-top: 18px;
}
.wcqo-related {
  margin-top: 20px;
}

.wcqo-related-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Wrapper */
.wcqo-related-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Scroll container */
.wcqo-related-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
  scrollbar-width: none;
}

.wcqo-related-list::-webkit-scrollbar {
  display: none;
}

/* Product card */
.wcqo-related-card {
  min-width: 130px;
  background: #fff;
  border: 1px solid var(--wcqo-border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  flex-shrink: 0;
}

/* Bigger image */
.wcqo-related-thumb {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.wcqo-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text */
.wcqo-related-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.wcqo-related-price {
  font-size: 12px;
  color: var(--wcqo-muted);
}


/* ================== RELATED NAV  ================== */


.wcqo-related-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.wcqo-related-row {
  flex: 0 0 calc((100% - 30px) / 4); /* desktop: 4 items */
  background: #fff;
  border: 1px solid var(--wcqo-border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  scroll-snap-align: start;
}

/* Nav buttons */
.wcqo-related-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;

  border-radius: 50%;
  border: none;

  background: #3db3c4 !important;
  color: #ffffff !important;

  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 5;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, opacity 0.15s ease;

}

.wcqo-related-prev {
  left: 0;
}

.wcqo-related-next {
  right: 0;
}

/* Mobile: swipe only */
@media (max-width: 480px) {
  .wcqo-related-nav {
    display: none;
  }

  .wcqo-related-list {
    padding: 2px 0;
  }
  
    .wcqo-related-row {
    flex: 0 0 calc((100% - 20px) / 3); /* 3 items */
  }
}

.wcqo-related-image {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.wcqo-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 480px) {
  .wcqo-related-image {
    height: 80px;
  }
}





/* ================== BEGIN WCQO SCROLL CTA ================== */

/* ================== WCQO SCROLL CTA – MODERN ================== */

.wcqo-scroll-cta {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.35s cubic-bezier(.4,0,.2,1),
        opacity 0.35s ease;
}

.wcqo-scroll-cta.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ================== BUTTON BASE (ORANGE) ================== */

.wcqo-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: linear-gradient(135deg, #ff6900 0%, #ff8a33 100%);
    color: #fff !important;

    border: none;
    border-radius: 999px;

    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;

    box-shadow:
        0 10px 25px rgba(255, 105, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15);

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: linear-gradient(135deg, #ff6900 0%, #ff8a33 100%);;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.25s ease;
}

.wcqo-scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(255, 105, 0, 0.45),
        0 6px 14px rgba(0, 0, 0, 0.18);
}

.wcqo-scroll-btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(255, 105, 0, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.14);
}

/* ================== FORCE TEXT COLOR ================== */

.wcqo-scroll-btn,
.wcqo-scroll-btn *,
.wcqo-scroll-btn:visited,
.wcqo-scroll-btn:hover,
.wcqo-scroll-btn:active {
    color: #ffffff !important;
    text-decoration: none;
}

/* ================== FOOTER STATE (BLUE) ================== */

.wcqo-scroll-cta.is-near-footer .wcqo-scroll-btn {
    background: linear-gradient(135deg, #3db3c4 0%, #5cc9d8 100%);
    box-shadow:
        0 10px 25px rgba(61, 179, 196, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ================== MOBILE ================== */

@media (max-width: 768px) {
    .wcqo-scroll-cta {
        bottom: 14px;
        width: calc(100% - 24px);
    }

    .wcqo-scroll-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 16px;
    }
}

/* ================== END WCQO SCROLL CTA ================== */

