/* === ARDUsimple Constructor Styling === */

.asc-vertical-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1300px;
    margin: 48px auto;
}

.asc-section-group { width: 100%; }

.asc-section-header {
    font-size: 26px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 500;
    padding-bottom: 20px;
    box-sizing: border-box;
    border: none;
}

.asc-section {
    background: #fff;
    box-shadow: 0 2px 18px rgba(0,0,0,0.07);
    border-radius: 0;
    padding: 0;
    width: 100%;
}

.asc-section-content {
    padding: 30px 36px 0px 36px;
    border-radius: 0;
}

/* ---------- LAYOUT ---------- */

/* Fieldset layout: two columns (desktop) */
.asc-fieldset-layout {
    display: flex;
    gap: 40px;
    margin: 0;
    align-items: flex-start;
    padding: 20px;
}

/* Each column is exactly 50% */
.asc-fieldset-column {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Remove shadow and background for inner fields */
.asc-fields-common,
.asc-fields-rover,
.asc-fields-base {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    min-width: 0;
}

.asc-block-title {
    font-size: 22px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 500;
    color: #333;   
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
    letter-spacing: 0;
}

/* ---------- GRID VERSION (used in template) ---------- */
.asc-fieldset-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 36px 40px;
    padding: 20px;
}

.asc-block-common { grid-column: 1; grid-row: 1; }
.asc-block-base   { grid-column: 2; grid-row: 2; }
.asc-block-rover  { grid-column: 1; grid-row: 2; }

/* ---------- RESPONSIVE ---------- */

/* Stack columns vertically below 900px */
@media (max-width: 900px) {
    /* Switch to flex column */
    .asc-fieldset-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 0;
    }
    /* Explicit mobile ordering: Common → Rover → Base */
    .asc-block-common { order: 1 !important; }
    .asc-block-rover  { order: 2 !important; }
    .asc-block-base   { order: 3 !important; }

    /* Remove any grid placement leftovers */
    .asc-block-common,
    .asc-block-base,
    .asc-block-rover {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* Narrow phones tweaks */
@media (max-width: 600px) {
    .asc-vertical-wrap {
        max-width: 98vw;
        padding: 0 4vw;
    }
    .asc-fields-common,
    .asc-fields-rover,
    .asc-fields-base {
        padding: 0;
    }
}

/* Extra legacy order fix (kept for older markup versions) */
@media (max-width: 899px) {
    .asc-constructor-wrapper {
        display: flex;
        flex-direction: column;
    }
    .asc-fields-common { order: 1; }
    .asc-fields-rover  { order: 2; }
    .asc-fields-base   { order: 3; }
}

/* ---------- QUESTION / ANSWER STYLES ---------- */

.asc-question-step {
    margin-bottom: 28px;
    animation: fadeInUp 0.5s;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px);}  
    to   { opacity: 1; transform: none; }
}

.asc-question-step.asc-active {
  border: 2px solid #38a7db;            /* blue outline */
  background: #eef7fd;                   /* soft blue bg */
  box-shadow: 0 4px 16px rgba(56,167,219,0.14);
  border-radius: 6px;
  padding: 12px 16px;
}

/* Make the title pop a bit more in active state */
.asc-question-step.asc-active .asc-question-title {
  color: #197bbd;
}



.asc-question-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0px;
    margin-top: 12px;
}

.asc-question-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 18px;
}

.asc-answer-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.asc-answer-item {
    border: 1px solid #d7d7d7;
    background: #F7F7F7;
    padding: 14px 16px;
    border-radius: 2px;
    font-size: 15 px;
    cursor: pointer;
    transition: background 0.18s, border 0.18s;
}
.asc-answer-item.selected {
    background: #72cdf6;
    color: #000;
    border-color: #72cdf6;
    box-shadow: 0 2px 10px rgba(114,205,246,0.12);
    transform: scale(1.025);
    transition: background 0.18s, border 0.18s, box-shadow 0.18s, transform 0.18s;
	font-weight: 700;
}
.asc-answer-item:hover {
    border-color: #b4d6f5;
}

.asc-answer-item.selected .asc-answer-hint
{ color:#fff;}

.asc-answer-item.selected .asc-answer-hint a
{ color:#fff;
text-decoration: underline;}

.asc-question-step.answered .asc-answer-item.selected { opacity: 1; }
.asc-question-step.answered .asc-answer-item:not(.selected) { opacity: 0.6; }
.asc-question-step.answered .asc-answer-item { cursor: default; }

.asc-answer-hint {
    font-size: 13px;
    color: #000;
    margin-top: 0px;
	font-style: italic;
    line-height: normal;
}

.asc-answer-item {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    background: #f7f7f7;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 52px;
    box-sizing: border-box;
    transition: border 0.18s, background 0.18s;
}
.asc-answer-img-wrap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.asc-answer-img {
    max-width: 42px;
    max-height: 42px;
   
}
.asc-answer-content {
    flex: 1 1 0;
    margin-left: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.asc-answer-label {
    font-weight: 500;
    color: #222;
    margin-bottom: 0px;
    line-height: normal;
    font-size: 15px;
}
.asc-answer-hint {
    font-size: 13px;
    color: #888;
}


.asc-answer-price {
    min-width: 95px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #43a047;
    margin-left: 12px;
    white-space: nowrap;
}

.asc-product-zone {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 24px;
    align-items: flex-start;
}
.asc-product-col {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 48%;
     display: flex;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
}

@media (max-width: 900px) {
    .asc-product-zone {
        flex-direction: column;
        gap: 24px;
    }
    .asc-product-col {
        max-width: 100%;
    }
}

.asc-product-row  { display:flex; align-items:center; gap:14px; margin-bottom:10px; }

.asc-product-row  {
    display:flex;
    align-items:flex-start;
    gap:14px;
    margin-bottom:10px;
    /* base visuals for nice highlight box */
    border: 1px solid transparent;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

/* Active-like highlight for rows that require variant selection */
.asc-product-row.missing-variant {
  border: 2px solid #38a7db;            /* same blue outline as active question */
  background: #eef7fd;                   /* soft blue bg */
  box-shadow: 0 4px 16px rgba(56,167,219,0.14);
}

/* Optional: quick pop animation (safe even if already defined elsewhere) */
@keyframes asc-pop { from { transform: scale(0.992); opacity: 0.85; } to { transform: none; opacity: 1; } }
.asc-product-row.missing-variant { animation: asc-pop 240ms ease-out; }

/* Warning line stays red and only shows while missing-variant is present */
.asc-variant-warn {
  color: #6EC1E4;
  font-size:13px;
  margin-top:3px;
  display:none;
}
.asc-product-row.missing-variant .asc-variant-warn { display:block; }

.asc-product-row img { width:42px; height:42px; object-fit:contain; }
.asc-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}



.asc-subtotal { font-weight:700; color:#43a047; margin-bottom:10px; }
.asc-total-wrap { display:flex; justify-content:space-between; align-items:center; }
.asc-add-cart { background:#6EC1E4; color:#fff; padding:10px 28px; border:none; cursor:pointer;}

.asc-qty-wrap, .asc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.asc-qty-label, .asc-subtotal-label {
    font-size: 16px;
    color: #232323;
    font-weight: 500;
}
.asc-subtotal .value {
    font-size: 18px;
    color: #43a047;
    font-weight: 600;
}

.asc-preloader {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.asc-preloader-backdrop {
  position: absolute; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.6);
}
.asc-preloader-spinner {
  position: relative;
  width: 56px; height: 56px;
  border: 5px solid #3ca5e9;
  border-top-color: #fff;
  border-radius: 50%;
  animation: asc-spin 1s linear infinite;
  z-index: 1;
}
@keyframes asc-spin {
  100% { transform: rotate(360deg); }
}

/* Message under the preloader spinner (shown on Add to cart) */
.asc-preloader::after {
  content: "We’re processing your request. This may take a few seconds — good moment to stretch a bit";
  position: fixed;                 /* anchor to the viewport */
  left: 50%;
  top: calc(50% + 56px + 12px);    /* 56px = spinner size, +12px gap below it */
  transform: translateX(-50%);
  width: min(92vw, 560px);         /* responsive max width */
  text-align: center;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 500;
  color: #2a2a2a;
  z-index: 10000;                  /* above backdrop and spinner */
  pointer-events: none;            /* ignore clicks */
}

/* On very small screens reduce the width a bit */
@media (max-width: 420px) {
  .asc-preloader::after { width: 90vw; font-size: 13.5px; }
}

.asc-product-list {
    
    background:#f7f7f9;
    border-radius:0px;
    padding:20px 18px 14px 18px;
    margin-bottom:0;
}
.asc-product-footer {
    
    border-radius: 8px;
    margin-top: 18px;
    padding: 12px 0px 10px 0px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asc-zone-divider {
    width: 100%;
    border: none;
    height: 1.5px;
    background: #e0e0e7;
    margin: 8px 0 20px 0;
}

.asc-total-row {
    display: flex;
    justify-content: flex-end;
    gap: 50px;
    align-items: center;
    margin-bottom: 18px;
    margin-right: 36px;
}
.asc-total-block {
    min-width: 220px;
    text-align: right;
}
.asc-total-block .asc-total-label {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}
.asc-total-block .asc-total-price {
    font-size: 22px;
    font-weight: 700;
    color: #43a047;
}
.asc-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-bottom: 10px;
    padding-bottom:30px;
    margin-right:36px;
}
@media (max-width: 900px) {
    .asc-total-row, .asc-action-row {
        justify-content: center;
        text-align: center;
    }
}


.asc-qty-group {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    border: 1px solid #cfd5db;
    background: #fff;
    width: 114px;
    height: 38px;
    overflow: hidden;
}

.asc-qty-btn {
    width: 38px;
    height: 38px;
    background: #fff;
    border: none;
    font-size: 23px;
    color: #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .14s;
    user-select: none;
    outline: none;
    box-shadow: none;
    padding: 0;
}



.asc-qty-input {
        width: 38px;
    padding: 0px !important;
    border: none;   
    border: none !important;
    font-size: 19px;
    text-align: center;
    background: #fff !important;
    outline: none;
    -moz-appearance: textfield;
    margin: 0;
    box-sizing: border-box;
}

.asc-qty-input::-webkit-inner-spin-button,
.asc-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.asc-qty-input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button
{
    display: none;
}

#spin
{
    display: none !important;
}

input.asc-qty-input[type="number"]::-webkit-inner-spin-button,
input.asc-qty-input[type="number"]::-webkit-outer-spin-button {
    opacity: 0 !important;
    display: none !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
}

input.asc-qty-input[type="number"] {
    -moz-appearance: textfield !important; /* Firefox */
    appearance: textfield !important;      /* Современные */
}

.asc-variant-select {
    min-width: 200px;
    max-width: 320px;
    padding: 2px 12px;
    font-size: 15px;
    border: 1.2px solid #d7d7d7;
    border-radius: 0px;
    background: #fff;
    margin-top: 6px;
    margin-bottom: 2px;
    outline: none;
    transition: border-color .17s;
     appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
   background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center; /* right padding for the arrow */
  background-size: 12px 8px;
  padding-right: 34px;
   cursor: pointer;
}



.asc-variant-select:focus {
    border-color: #38a7db;
}

select.asc-variant-select::-ms-expand { display: none; }
.asc-variant-warn {
    color: #6EC1E4;
    font-size: 13px;
    margin-top: 3px;
    display: none;
}

/* Show a red error border on the select ONLY when validation failed */
.asc-product-row.invalid-variant .asc-variant-select {
  border-color: #c00 !important;
  box-shadow: 0 0 0 2px rgba(204,0,0,0.10);
}
.asc-product-row.invalid-variant .asc-variant-select:focus,
.asc-product-row.invalid-variant .asc-variant-select:hover {
  border-color: #c00 !important;
  outline: none;
}

.asc-product-row.invalid-variant .asc-variant-warn {
  color: #c00;  /* red */
}

.asc-product-row a + div {
    margin: 0px;
    font-size: 15px;
    font-weight: 400;
}

.asc-proposal-modal-backdrop {
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asc-proposal-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.14);
    padding: 32px 32px 22px 32px;
    min-width: 320px;
    max-width: 98vw;
    position: relative;
}

.asc-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    transition: color 0.15s;
}
.asc-modal-close:hover {
    color: rgb(51, 51, 51);
}

.asc-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.asc-proposal-email {
    width: 100%;
    font-size: 17px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1.2px solid #b4c6dd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
}
.asc-proposal-email:focus {
    border-color: #3ca5e9;
}

.asc-send-proposal-btn {
    background: #3ca5e9;
    color: #fff;
    padding: 11px 26px;
    border-radius: 7px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.asc-send-proposal-btn:hover {
    background: #2489c8;
}

.asc-proposal-error {
    color: #c00;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.asc-modal-message
{
    font-size:18px;
    text-align:center;
    
}
.asc-modal-close
{
    position:absolute;
    right:14px;
    top:6px;
    font-size:24px;
    background:none;
    border:none;
    cursor:pointer;
    color:#000;
    padding: 0px;
}

.asc-price-color
{color: #43a047;
font-size:16px;
font-weight:600;}

.product-list-title
{
    font-weight:600;
    color:#38a7db;
    font-size:16px;
    line-height:normal;
}
.choose-option-text
{color: #43a047;
font-size:16px;
font-weight:600;
}

.asc-add-cart, .asc-send-proposal-btn
{
    background-color: #6EC1E4;
}

/* Base block hint message (shown before Base questions start) */
.asc-base-hint {
  background: #fffbe6;
  border: 1px solid #ffecb3;
  color: #5d4200;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.35;
}

/* Make room for a checkmark on success */
.asc-add-cart {
  position: relative;
  padding-right: 46px; /* space for the checkmark on the right */
}

/* Green checkmark shown when items were added */
.asc-add-cart.done::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(46,125,50,0.10);
}

/* Optional: subtle success tint */
.asc-add-cart.done {
  background-color: #38a7db; /* soft green */
}

