/* ==========================================================================
   Cone quote form — isolated premium UI based on the Main Quote Form
   ========================================================================== */
.hpcq-wrap {
    --hpcq-blue: #5a9fe0;
    --hpcq-blue-dark: #287fc9;
    --hpcq-blue-soft: #eef7ff;
    --hpcq-ink: #102033;
    --hpcq-muted: #64748b;
    --hpcq-border: #dce6f2;
    display: grid;
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) minmax(220px, 275px);
    gap: 24px;
    align-items: start;
    width: min(100%, 1420px);
    margin: 34px auto;
    color: var(--hpcq-ink);
    font-family: inherit;
    overflow-x: clip;
}
.hpcq-wrap *, .hpcq-wrap *::before, .hpcq-wrap *::after { box-sizing: border-box; min-width: 0; }
.hpcq-sidebar, .hpcq-form-card, .hpcq-summary {
    background: #fff;
    border: 1px solid var(--hpcq-border);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(16, 32, 51, .08);
}
.hpcq-sidebar, .hpcq-summary { position: sticky; top: 24px; padding: 25px 22px; }
.hpcq-form-card { min-width: 0; padding: 28px 30px 32px; }
.hpcq-sidebar h2 {
    margin: 0 0 12px;
    color: #010302;
    font-size: clamp(25px, 2vw, 32px);
    line-height: 1.06;
    font-weight: 900;
}
.hpcq-sidebar p { margin: 0; color: var(--hpcq-muted); font-size: 14px; line-height: 1.65; }
.hpcq-sidebar ul { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.hpcq-sidebar li { display: flex; align-items: center; gap: 9px; color: var(--hpcq-ink); font-size: 14px; font-weight: 700; }
.hpcq-sidebar li span {
    display: inline-grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--hpcq-blue);
    color: #fff;
    font-size: 12px;
}
.hpcq-stepper {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hpcq-border);
}
.hpcq-stepper__item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8b99aa;
    font: inherit;
    cursor: pointer;
}
.hpcq-stepper__item:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 15px;
    left: calc(50% + 17px);
    width: calc(100% - 29px);
    height: 2px;
    background: #dce6f2;
}
.hpcq-stepper__circle {
    position: relative;
    z-index: 1;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 2px solid #d3dfec;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}
.hpcq-stepper__label {
    overflow: hidden;
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hpcq-stepper__item.is-active, .hpcq-stepper__item.is-complete { color: var(--hpcq-blue-dark); }
.hpcq-stepper__item.is-active .hpcq-stepper__circle,
.hpcq-stepper__item.is-complete .hpcq-stepper__circle {
    border-color: var(--hpcq-blue);
    background: var(--hpcq-blue);
    color: #fff;
}
.hpcq-stepper__item.is-complete:not(:last-child)::after { background: var(--hpcq-blue); }
.hpcq-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    animation: hpcqFade .2s ease-out;
}
.hpcq-step[hidden] { display: none !important; }
.hpcq-step legend {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: #010302;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 900;
}
.hpcq-step__desc { margin: 0 0 25px; color: var(--hpcq-muted); font-size: 14px; line-height: 1.6; }
.hpcq-style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}
.hpcq-style-card, .hpcq-option-card, .hpcq-quantity-card {
    position: relative;
    display: flex;
    min-width: 0;
    border: 1px solid var(--hpcq-border);
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.hpcq-style-card:hover, .hpcq-option-card:hover, .hpcq-quantity-card:hover {
    border-color: #9bc7ee;
    box-shadow: 0 10px 25px rgba(40, 127, 201, .11);
    transform: translateY(-2px);
}
.hpcq-style-card.is-selected, .hpcq-option-card.is-selected, .hpcq-quantity-card.is-selected {
    border-color: var(--hpcq-blue);
    background: var(--hpcq-blue-soft);
    box-shadow: 0 0 0 3px rgba(90, 159, 224, .17);
}
.hpcq-style-card input, .hpcq-option-card input, .hpcq-quantity-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.hpcq-style-card { min-height: 136px; flex-direction: column; overflow: hidden; }
.hpcq-style-card__media {
    display: grid;
    min-height: 94px;
    flex: 1;
    place-items: center;
    overflow: hidden;
    background: #f5f9fd;
}
.hpcq-style-card__media img { display: block; width: 100%; height: 94px; object-fit: contain; background: #fff; }
.hpcq-style-card__media svg { width: 62px; height: 62px; color: var(--hpcq-blue); fill: none; stroke: currentColor; stroke-width: 2; }
.hpcq-style-card__media text { fill: currentColor; stroke: none; font-size: 16px; font-weight: 900; }
.hpcq-style-card__media--icon svg { width: 42px; height: 42px; }
.hpcq-style-card__name { padding: 9px 7px; color: var(--hpcq-ink); font-size: 12px; line-height: 1.25; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.hpcq-option-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: var(--hpcq-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.is-selected > .hpcq-option-card__check { display: grid; }
.hpcq-fields { display: grid; gap: 16px; margin-bottom: 17px; }
.hpcq-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hpcq-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hpcq-field { display: block; margin: 0 0 17px; }
.hpcq-field > span { display: block; margin-bottom: 7px; color: var(--hpcq-ink); font-size: 13px; font-weight: 800; }
.hpcq-field input, .hpcq-field select, .hpcq-field textarea {
    display: block;
    width: 100%;
    min-height: 47px;
    margin: 0;
    border: 1px solid #cfdbe8;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--hpcq-ink);
    font: inherit;
    font-size: 14px;
    padding: 11px 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.hpcq-field textarea { resize: vertical; }
.hpcq-field input:focus, .hpcq-field select:focus, .hpcq-field textarea:focus {
    border-color: var(--hpcq-blue);
    box-shadow: 0 0 0 3px rgba(90, 159, 224, .15);
}
.hpcq-field input.is-invalid, .hpcq-field select.is-invalid, .hpcq-field textarea.is-invalid,
.hpcq-style-grid.is-invalid, .hpcq-option-grid.is-invalid, .hpcq-quantity-grid.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.hpcq-error, .hpcq-group-error { display: block; min-height: 17px; margin-top: 5px; color: #b42318; font-size: 12px; font-weight: 600; }
.hpcq-group-error:empty { min-height: 0; margin: 0; }
.hpcq-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 15px;
}
.hpcq-option-card { min-height: 98px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px 10px; text-align: center; }
.hpcq-option-card__icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    background: var(--hpcq-blue-soft);
    color: var(--hpcq-blue-dark);
}
.hpcq-option-card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hpcq-option-card__name { color: var(--hpcq-ink); font-size: 11px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.hpcq-quantity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; padding: 2px; border: 1px solid transparent; border-radius: 13px; }
.hpcq-quantity-card { min-height: 58px; align-items: center; justify-content: center; padding: 12px; color: var(--hpcq-ink); font-weight: 900; }
.hpcq-custom-quantity { max-width: 330px; margin-top: 18px; }
.hpcq-subsection + .hpcq-subsection { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--hpcq-border); }
.hpcq-subsection h3 { margin: 0 0 5px; color: #010302; font-size: 18px; font-weight: 900; }
.hpcq-subsection > p { margin: 0 0 15px; color: var(--hpcq-muted); font-size: 13px; }
.hpcq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 27px; }
.hpcq-actions--end { justify-content: flex-end; }
.hpcq-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    padding: 12px 21px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hpcq-btn:hover { transform: translateY(-1px); }
.hpcq-btn--primary, .hpcq-btn--submit { background: var(--hpcq-blue); color: #fff; box-shadow: 0 8px 18px rgba(40, 127, 201, .23); }
.hpcq-btn--primary:hover, .hpcq-btn--submit:hover { background: var(--hpcq-blue-dark); }
.hpcq-btn--back { border: 1px solid var(--hpcq-border); background: #fff; color: var(--hpcq-ink); }
.hpcq-btn--submit { min-width: 205px; }
.hpcq-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.hpcq-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hpcqSpin .75s linear infinite;
}
.hpcq-btn.is-loading .hpcq-spinner { display: block; }
.hpcq-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    border: 1px dashed #a9c8e5;
    border-radius: 14px;
    background: #f7fbff;
    padding: 14px;
    cursor: pointer;
}
.hpcq-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hpcq-upload__icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border-radius: 11px; background: #fff; color: var(--hpcq-blue-dark); }
.hpcq-upload__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hpcq-upload > span:nth-child(2) { min-width: 0; flex: 1; }
.hpcq-upload strong, .hpcq-upload small { display: block; }
.hpcq-upload strong { color: var(--hpcq-ink); font-size: 14px; }
.hpcq-upload small { margin-top: 4px; color: var(--hpcq-muted); font-size: 11px; line-height: 1.4; }
.hpcq-upload__button { border: 1px solid var(--hpcq-border); border-radius: 9px; background: #fff; color: var(--hpcq-blue-dark); font-size: 12px; font-weight: 900; padding: 9px 12px; }
.hpcq-file-name { margin-top: 7px; color: var(--hpcq-muted); font-size: 12px; }
.hpcq-response { margin: 0 0 22px; border: 1px solid; border-radius: 12px; padding: 13px 15px; font-size: 14px; font-weight: 700; }
.hpcq-response.is-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.hpcq-response.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.hpcq-summary h3 { margin: 0 0 15px; color: #010302; font-size: 20px; font-weight: 900; }
.hpcq-summary h4 { margin: 19px 0 11px; color: var(--hpcq-ink); font-size: 13px; font-weight: 900; }
.hpcq-summary__preview {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--hpcq-border);
    border-radius: 13px;
    background: #fff;
    padding: 8px;
}
.hpcq-summary__preview img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hpcq-summary__placeholder { display: grid; place-items: center; gap: 7px; color: var(--hpcq-muted); font-size: 12px; text-align: center; }
.hpcq-summary__placeholder svg { width: 40px; height: 40px; fill: none; stroke: var(--hpcq-blue); stroke-width: 1.7; }
.hpcq-summary__style { margin-top: 11px; color: var(--hpcq-ink); font-size: 13px; font-weight: 900; text-align: center; }
.hpcq-summary dl { display: grid; gap: 0; margin: 0; }
.hpcq-summary dl > div { padding: 9px 0; border-top: 1px solid var(--hpcq-border); }
.hpcq-summary dt { margin: 0 0 3px; color: var(--hpcq-muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.hpcq-summary dd { margin: 0; color: var(--hpcq-ink); font-size: 12px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.hpcq-summary__secure { margin: 17px 0 0; border-radius: 10px; background: #f5f9fd; color: var(--hpcq-muted); font-size: 10px; line-height: 1.45; padding: 10px; }
@keyframes hpcqFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hpcqSpin { to { transform: rotate(360deg); } }
@media (max-width: 1120px) {
    .hpcq-wrap { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); }
    .hpcq-summary { position: static; grid-column: 1 / -1; }
    .hpcq-summary__preview { max-width: 220px; margin-inline: auto; }
}
@media (max-width: 850px) {
    .hpcq-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; width: 100%; max-width: 100%; margin: 22px auto; overflow-x: hidden; }
    .hpcq-sidebar, .hpcq-summary { position: static; }
    .hpcq-sidebar { order: 1; }
    .hpcq-form-card { order: 2; }
    .hpcq-summary { order: 3; }
    .hpcq-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .hpcq-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .hpcq-stepper__label { display: none; }
}
@media (max-width: 560px) {
    .hpcq-wrap { width: 100%; }
    .hpcq-sidebar, .hpcq-form-card, .hpcq-summary { border-radius: 15px; }
    .hpcq-sidebar, .hpcq-summary { padding: 19px 16px; }
    .hpcq-form-card { padding: 20px 15px 23px; }
    .hpcq-stepper { gap: 1px; margin-bottom: 23px; }
    .hpcq-stepper__circle { width: 27px; height: 27px; font-size: 10px; }
    .hpcq-stepper__item:not(:last-child)::after { top: 13px; left: calc(50% + 14px); width: calc(100% - 25px); }
    .hpcq-style-grid, .hpcq-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hpcq-fields--2, .hpcq-fields--3 { grid-template-columns: 1fr; }
    .hpcq-style-card { min-height: 116px; }
    .hpcq-style-card__media, .hpcq-style-card__media img { min-height: 76px; height: 76px; }
    .hpcq-style-card__name { padding: 8px 5px; font-size: 11px; }
    .hpcq-option-card { min-height: 88px; padding: 10px 5px 8px; }
    .hpcq-option-card__icon { width: 35px; height: 35px; }
    .hpcq-option-card__icon svg { width: 21px; height: 21px; }
    .hpcq-option-card__name { font-size: 10px; }
    .hpcq-quantity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hpcq-actions { align-items: stretch; flex-direction: column-reverse; }
    .hpcq-actions .hpcq-btn { width: 100%; }
    .hpcq-actions--end { flex-direction: column; }
    .hpcq-upload { align-items: flex-start; flex-wrap: wrap; }
    .hpcq-upload__button { width: 100%; text-align: center; }
}

/* Cosmetics quote form: Main Quote Form visual language, cosmetics identity */
.hpcosq-wrap [hidden] {
    display: none !important;
}
.hpcosq-wrap .hpcq-option-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hpcosq-wrap .hpcq-fields--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hpcosq-wrap .hpcq-option-card {
    min-height: 94px;
}
.hpcosq-wrap .hpcq-style-card__media img,
.hpcosq-wrap .hpcq-summary__preview img {
    object-fit: contain;
}
.hpcosq-wrap .hpcq-summary__preview {
    background: #fff;
}
.hpcosq-section-title {
    margin: 22px 0 12px;
    color: #102033;
    font-size: 16px;
    font-weight: 900;
}
.hpcosq-upload-list {
    display: grid;
    gap: 14px;
}
.hpcosq-upload-list .hpcq-file-name {
    margin-top: -8px;
}
@media (max-width: 850px) {
    .hpcosq-wrap .hpcq-option-grid,
    .hpcosq-wrap .hpcq-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hpcosq-wrap .hpcq-fields--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .hpcosq-wrap .hpcq-option-grid,
    .hpcosq-wrap .hpcq-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hpcosq-wrap .hpcq-fields--4 {
        grid-template-columns: 1fr;
    }
    .hpcosq-wrap .hpcq-option-card {
        min-height: 86px;
    }
}
/* Container mein counter reset karein */
.hpcq-style-grid {
    counter-reset: style-counter;
}

/* Sirf un cards par counter lagayein jo 'fallback' nahi hain */
.hpcq-style-card:not(.hpcq-style-card--fallback) {
    counter-increment: style-counter;
}

/* Purana lamba text hide karein (sirf main styles ka) */
.hpcq-style-card:not(.hpcq-style-card--fallback) .hpcq-style-card__name {
    font-size: 0 !important;
}

/* Naya "Style X" text add karein */
.hpcq-style-card:not(.hpcq-style-card--fallback) .hpcq-style-card__name::before {
    content: "Style " counter(style-counter);
    font-size: 14px; /* Aap apne hisab se size badal sakte hain */
    display: block;
    text-align: center;
}

/* Aakhri "Other" card ko waisa hi rehne dein (ensure it's visible) */
.hpcq-style-card--fallback .hpcq-style-card__name {
    display: block !important;
    font-size: 14px !important; /* Iska size normal rakhein */
}
/* Summary section se lamba text hide karne ke liye */
#hpcosq-summary-style {
    display: none !important;
}

/* Image ko box mein fit karne ke liye */
#hpcosq-preview-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.hpcq-summary__preview {
    padding: 0 !important;
    overflow: hidden;
}
/* Container ko flexible banane ke liye */
.hpcq-summary__preview {
    aspect-ratio: auto !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
}

/* Image ko box ke hisab se fit karne ke liye */
#hpcosq-preview-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
}
/* Image ke side ki space khatam karne ke liye */
.hpcq-style-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.hpcq-style-card__media {
    padding: 0 !important;
    margin: 0 !important;
}

.hpcq-style-card {
    padding: 0 !important;
}
.hpcq-summary__placeholder {
  display: none;
}

.hpcq-style-card__name {
  display: none;
}

.hpcq-summary__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.hpcq-summary__preview {
  padding: 0px;
  display: block;
  height: 200px;
  min-height: 200px;
  width: 200px;
  overflow: hidden;
  margin: 0px auto;
}
.hpcq-summary__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
}

.hpcq-summary__placeholder svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: rgb(52, 152, 219);
  stroke-width: 1.5;
  display: block;
}

/* Keep quote-form visibility scoped. Do not hide global span/image elements,
   otherwise the product header, footer, icons and links break site-wide. */

/* Mylar / Pouches quote form: scoped premium UI refinements */
.hppouchq-wrap .hpcq-sidebar li span,
.hppouchq-wrap .hpcq-stepper__circle,
.hppouchq-wrap .hpcq-option-card__icon {
  display: grid;
}

.hppouchq-wrap .hpcq-upload__icon {
  display: grid;
}

.hppouchq-wrap .hpcq-upload > span {
  display: inline-flex;
}

.hppouchq-wrap .hpcq-upload > span:nth-child(2) {
  display: block;
}

.hppouchq-wrap .hpcq-stepper__label,
.hppouchq-wrap .hpcq-option-card__name,
.hppouchq-wrap .hpcq-quantity-card span,
.hppouchq-wrap .hpcq-summary__placeholder span,
.hppouchq-wrap .hpcq-upload__button,
.hppouchq-wrap .hpcq-submit-label {
  display: inline;
}

.hppouchq-wrap .hpcq-field > span {
  display: block;
}

.hppouchq-wrap .hpcq-option-card__check,
.hppouchq-wrap .hpcq-spinner {
  display: none;
}

.hppouchq-wrap .is-selected > .hpcq-option-card__check,
.hppouchq-wrap .hpcq-btn.is-loading .hpcq-spinner {
  display: grid;
}

.hppouchq-wrap .hppouchq-size-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hppouchq-wrap .hppouchq-yesno-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 460px;
}

.hppouchq-wrap .hpcq-option-card__name {
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .hppouchq-wrap .hppouchq-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hppouchq-wrap .hppouchq-size-grid,
  .hppouchq-wrap .hppouchq-yesno-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Summary preview repair for Cone, Cosmetics and Mylar/Pouches forms only.
   Keeps selected images fitted inside the right summary card and prevents
   fallback/custom choices from showing broken image icons. */
.hpcq-wrap .hpcq-summary__preview {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  max-width: 220px !important;
  height: 200px !important;
  min-height: 200px !important;
  aspect-ratio: auto !important;
  margin: 0 auto 10px !important;
  padding: 8px !important;
  overflow: hidden !important;
  border: 1px solid var(--hpcq-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
}

.hpcq-wrap .hpcq-summary__preview > img {
  display: block !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
}

.hpcq-wrap .hpcq-summary__preview > img[hidden],
.hpcq-wrap .hpcq-summary__placeholder[hidden] {
  display: none !important;
}

.hpcosq-wrap .hpcq-summary__preview > img:not([src]),
.hpcosq-wrap .hpcq-summary__preview > img[src=""] {
  display: none !important;
}

.hpcq-wrap .hpcq-summary__placeholder:not([hidden]) {
  display: grid !important;
  place-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
  color: var(--hpcq-muted) !important;
  text-align: center !important;
}

.hpcq-wrap .hpcq-summary__placeholder svg {
  width: 54px !important;
  height: 54px !important;
}

.hpcq-wrap .hpcq-summary__placeholder span {
  display: block !important;
}

.hpcq-wrap .hpcq-style-card__name,
.hpcq-wrap .hpcq-option-card__name,
.hpcq-wrap .hpcq-quantity-card span {
  display: block !important;
}

/* Templete quote form: same premium layout without a style step */
.hptemplateq-wrap .hpcq-stepper {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hptemplateq-wrap .hpcq-fields--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hptemplateq-wrap .hpcq-option-card__name {
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .hptemplateq-wrap .hpcq-fields--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hptemplateq-wrap .hpcq-fields--4 {
    grid-template-columns: 1fr;
  }
}

/* Sticker quote form: premium cosmetic-style layout scoped only to sticker */
.hpstickerq-wrap .hpcq-stepper {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hpstickerq-wrap .hpcq-option-card__name {
  overflow-wrap: anywhere;
}

.hpstickerq-wrap .hpcq-summary__style {
  display: block !important;
}

@media (max-width: 850px) {
  .hpstickerq-wrap .hpcq-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
