/* Product configure page based on reference layout. */

.configure-page {
    background: #f2f3f5;
}

.configure-wrap {
    padding: 20px 0 34px;
}

.configure-layout {
    width: min(1240px, 96%);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 18px;
    align-items: start;
}

.configure-main,
.configure-side {
    min-width: 0;
}

.configure-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 2rem;
}

.configure-head p {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.configure-badges {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.configure-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #ced5df;
    color: #0f172a;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.configure-steps {
    margin-top: 14px;
    border: 1px solid #dde2ea;
    border-radius: 6px;
    background: #eceff3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.configure-steps .step-link {
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: #5b6473;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    padding: 7px 8px;
}

.configure-steps .step-link.active {
    color: #111827;
    background: #f6f8fa;
}

.step-panel {
    display: none;
}

.step-panel.is-active {
    display: block;
}

.step-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.step-btn {
    min-height: 40px;
    min-width: 110px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-btn-primary {
    border-color: #f47f1f;
    background: #f47f1f;
    color: #fff;
}

.configure-grid-two {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.configure-page label,
.cfg-block {
    display: block;
}

.configure-page label > span,
.cfg-label {
    display: block;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.configure-page select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cad1dc;
    border-radius: 5px;
    background: #fff;
    color: #111827;
    font-size: 0.86rem;
    padding: 0 10px;
}

.configure-page small {
    display: block;
    margin-top: 6px;
    color: #768193;
    font-size: 0.74rem;
}

.radio-row {
    min-height: 40px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-size: 0.84rem;
}

.cfg-block {
    margin-top: 14px;
}

.upload-zone {
    margin-top: 14px;
    border: 1px dashed #cfd6df;
    border-radius: 10px;
    background: #fafbfd;
    padding: 20px;
}

.upload-zone h2 {
    margin: 0;
    color: #111827;
    font-size: 1.2rem;
}

.upload-zone p {
    margin: 8px 0 12px;
    color: #667085;
    font-size: 0.88rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #f47f1f;
    background: #fff6ed;
    color: #c85d05;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

#cfgFiles {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-list-wrap {
    margin-top: 14px;
    border: 1px solid #d8dfe9;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
}

.upload-list-wrap h3 {
    margin: 0 0 10px;
    font-size: 0.96rem;
    color: #111827;
}

.upload-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f9fbfc;
    padding: 8px 10px;
}

.upload-item span {
    color: #334155;
    font-size: 0.84rem;
    word-break: break-word;
}

.upload-item span small {
    display: inline;
    margin-left: 6px;
    color: #64748b;
    font-size: 0.74rem;
}

.upload-item button {
    border: 1px solid #f0b17a;
    background: #fff4e8;
    color: #b45309;
    border-radius: 7px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.upload-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.review-card {
    margin-top: 14px;
    border: 1px solid #d6dce6;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

.review-card h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.16rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.review-grid p {
    margin: 0;
    color: #334155;
    font-size: 0.84rem;
}

.review-grid strong {
    color: #111827;
}

.option-grid {
    display: grid;
    gap: 10px;
}

.color-mode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-card {
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    text-align: left;
    padding: 10px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.option-card small,
.option-card em {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.73rem;
    font-style: normal;
    font-weight: 500;
}

.option-card.active {
    border-color: #f47f1f;
    box-shadow: 0 0 0 1px rgba(244, 127, 31, 0.18);
    background: #fff9f3;
}

.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qty-pill {
    min-width: 52px;
    min-height: 34px;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.qty-pill.active {
    border-color: #f47f1f;
    background: #f47f1f;
    color: #fff;
}

.summary-card,
.support-card {
    border: 1px solid #d6dce6;
    border-radius: 10px;
    background: #f6f7f9;
    padding: 16px;
}

.summary-card {
    position: sticky;
    top: 86px;
}

.summary-label {
    margin: 0;
    color: #6b7280;
    text-align: center;
    font-size: 0.8rem;
}

.summary-card h2 {
    margin: 4px 0 0;
    text-align: center;
    color: #111827;
    font-size: 2rem;
}

.summary-sub {
    margin: 4px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.78rem;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.summary-list li {
    color: #374151;
    font-size: 0.84rem;
}

.summary-btn {
    width: 100%;
    margin-top: 14px;
    min-height: 46px;
    border-radius: 6px;
}

.summary-note {
    margin: 10px 0 0;
    color: #7b8391;
    font-size: 0.72rem;
    text-align: center;
}

.support-card {
    margin-top: 10px;
}

.support-card h3 {
    margin: 0;
    color: #111827;
    font-size: 0.95rem;
}

.support-card p {
    margin: 8px 0 10px;
    color: #6b7280;
    font-size: 0.76rem;
}

.support-card a {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #1f3f7d;
    border-radius: 4px;
    color: #1f3f7d;
    background: #f9fbff;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .configure-layout {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .configure-grid-two,
    .color-mode-grid,
    .delivery-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .configure-head h1 {
        font-size: 1.5rem;
    }
}
