/* One-click order modal — styled per Figma 849:23062 */

.overlay_kviz {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 14, 0.6);
  z-index: 4000;
  display: none;
}

.quiz {
  --font5: 'FixelDisplayR', 'Fixel Text', 'MacPawFixel', sans-serif;
  --font-med: 'FixelDisplayM', 'Fixel Text', 'MacPawFixel', sans-serif;
  position: fixed;
  top: 0;
  right: 0;
  width: 620px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 4001;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0;
}

.quiz * {
  box-sizing: border-box;
}

.quiz p { margin: 0; padding: 0; }
.quiz svg { pointer-events: none; }
.none { display: none !important; }
.hidden { display: none; }
.error { border: 1px solid #c00 !important; }

/* Page wrapper — sticky header + content */
.quiz_page {
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: var(--font5);
}

/* Sticky header */
.title_block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px 12px;
  border-bottom: 1px solid #E3E3E3;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.quiz_title {
  margin: 0;
  font-family: var(--font5);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: #141414;
  letter-spacing: 0.3px;
}

.quiz_page-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L1 11' stroke='%235E5E5E' stroke-width='1.2'/%3E%3Cpath d='M1 1L11 11' stroke='%235E5E5E' stroke-width='1.2'/%3E%3C/svg%3E") center no-repeat;
  background-size: 11px 11px;
  cursor: pointer;
  padding: 0;
  font-size: 0;
}
.quiz_page-close svg { display: none; }
.quiz_page-close:hover { opacity: 0.6; }

/* Main content wrapper (below header) */
.quiz_product-info,
#one-click-product-form,
.quiz_form,
.quiz_form-extras,
.quiz_info-pay,
.quiz_submit-wrap {
  padding-left: 40px;
  padding-right: 40px;
}

/* Product card */
.quiz_product-info {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding-top: 32px;
  padding-bottom: 0;
  border: 0;
  margin-bottom: 36px;
}

.quiz_product-thumb {
  width: 78px;
  height: 106px;
  object-fit: cover;
  flex-shrink: 0;
  background: #E7E7E7;
}

.quiz_product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 10px;
  padding: 8px 0;
}

.quiz_product-name {
  font-family: var(--font5);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: #141414;
  line-height: 1.38;
  margin: 0;
}

.quiz_product-color {
  font-family: var(--font5);
  font-size: 12px;
  font-weight: 400;
  color: #5E5E5E;
  line-height: 1.2;
}

.quiz_product-price {
  font-family: var(--font-med);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #141414;
  line-height: 1.38;
}
.quiz_price-old {
  text-decoration: line-through;
  color: #757575;
  font-weight: 400;
  margin-right: 6px;
}
.quiz_price-special {
  color: #c00;
  font-weight: 500;
}

/* Options block (sizes) */
#one-click-product-form {
  margin-bottom: 36px;
}
.quiz_option-group {
  margin: 0 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz_form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz_form-label {
  font-family: var(--font5);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  color: #141414;
  line-height: 1.38;
}
.quiz_form-label-row span,
.quiz_size-table {
  font-family: var(--font5);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: #141414;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 3px 0;
}

.quiz_option-values {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}
.quiz_option-values::-webkit-scrollbar { display: none; }

.quiz_option-value {
  cursor: pointer;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.quiz_option-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.quiz_option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 16px 24px;
  font-family: var(--font5);
  font-size: 14px;
  line-height: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: #141414;
  border-bottom: 1px solid #EEEEEE;
  transition: border-color 0.15s;
}
.quiz_option-label.active,
.quiz_option-radio:checked + .quiz_option-label {
  border-bottom-color: #141414;
  background: transparent;
  color: #141414;
}

/* Form (phone + comment) */
.quiz_form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

/* Hidden name field — backend still requires it, pre-filled from phone */
.quiz_form-input[data-action="name"] {
  display: none !important;
}

.quiz_form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz_form-field .quiz_form-label {
  margin: 0;
}

.quiz_form-input,
.quiz_form input[type="text"],
.quiz_form input[type="tel"],
.quiz_form textarea {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #E3E3E3;
  background: #fff;
  font-family: var(--font5);
  font-size: 13px;
  color: #141414;
  border-radius: 0;
  outline: none;
  margin: 0;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.quiz_form-input::placeholder,
.quiz_form input::placeholder,
.quiz_form textarea::placeholder {
  color: #757575;
}
.quiz_form-input:focus,
.quiz_form input:focus,
.quiz_form textarea:focus {
  border-color: #141414;
}
.quiz_form textarea {
  height: 48px;
  resize: none;
}

/* Installments info + submit */
.quiz_submit-wrap {
  padding-top: 0;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz_installments-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
}
.quiz_installments-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'MacPawFixel', 'Fixel Display', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #141414;
  line-height: 1.2;
}
.quiz_installments-text svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.quiz_installments-logos {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.quiz_installments-logos img {
  height: 16px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Submit button */
.quiz_button {
  width: 100%;
  height: 44px;
  padding: 3px 0 0;
  background: #141414;
  font-family: var(--font-med);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, opacity 0.2s;
}
.quiz_button:hover { background: #000; }
.quiz_button:disabled {
  background: #E3E3E3;
  color: #fff;
  cursor: default;
}

/* Trigger button (on product page) */
.kviz_button {
  background: transparent !important;
  color: #141414 !important;
  border: 1px solid #141414 !important;
}

/* HIDE payment method block — per user requirement */
.quiz_pay {
  display: none !important;
}

/* Progress steps */
.quiz_progres-wrapper { display: none; }
.title_block-wrapper { display: none; }

/* ===== Page 3: Shipping / Confirmation ===== */
.title_done {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: #141414;
  margin: 0 0 16px;
  padding: 0 40px;
}
.order_done {
  padding: 0 40px;
  border: none;
}
.order_done .panel-body { padding: 0; }

.quiz #collapse-shipping-method {
  display: block !important;
  height: auto !important;
  padding: 0 40px;
}
.quiz #collapse-shipping-method .radio,
.quiz #collapse-shipping-method .form-group {
  margin-bottom: 12px;
}
.quiz #collapse-shipping-method label {
  font-family: var(--font5);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.quiz #collapse-shipping-method input[type="text"],
.quiz #collapse-shipping-method select {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #E3E3E3;
  background: #fff;
  font-family: var(--font5);
  font-size: 13px;
  color: #141414;
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
}

/* Cart items on confirm page */
.quiz .cart_order-wrapper {
  padding: 0 40px;
}
.quiz .cart_order {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #E3E3E3;
}
.quiz .cart_order:last-child { border-bottom: 0; }
.quiz .cart_order-img {
  width: 78px;
  height: 106px;
  object-fit: cover;
  flex-shrink: 0;
}
.quiz .cart_order-text {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-transform: uppercase;
}
.quiz .order_text-title {
  font-family: var(--font-med);
  font-size: 14px;
  font-weight: 500;
  color: #141414;
}
.quiz .cart_color {
  font-family: var(--font5);
  font-size: 12px;
  color: #5E5E5E;
}
.quiz .cart_order-price {
  font-family: var(--font-med);
  font-size: 14px;
  font-weight: 500;
}

/* Text danger / errors */
.quiz .text-danger {
  color: #c00;
  font-family: var(--font5);
  font-size: 12px;
  margin-top: 4px;
}

/* Input mask focus */
.quiz input.error,
.quiz textarea.error {
  border-color: #c00 !important;
}

.ui-autocomplete { z-index: 4100; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .quiz { width: 100%; }
  .title_block { padding: 20px 20px 12px; }
  .quiz_product-info,
  #one-click-product-form,
  .quiz_form,
  .quiz_submit-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .quiz_title { font-size: 14px; }
  .quiz_product-info { padding-top: 20px; margin-bottom: 24px; }
  #one-click-product-form { margin-bottom: 24px; }
  .quiz_form { margin-bottom: 24px; }
  .quiz_option-label { padding: 12px 16px; min-width: 52px; }
  .quiz_submit-wrap { padding-bottom: 24px; }
}
