/* Custom Order Page */

.bc-custom-order {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    font-family: "Outfit", var(--bc-font, sans-serif);
}

.bc-custom-order__header {
    margin-bottom: 32px;
}

.bc-custom-order__title {
    font-family: "Playfair Display", var(--bc-font-serif, Georgia), serif;
    font-size: 34px;
    line-height: 1.15;
    color: var(--bc-text, #111827);
    margin: 0 0 8px;
}

.bc-custom-order__subtitle {
    color: var(--bc-text-secondary, #4b5563);
    font-size: 15px;
    margin: 0;
}

.bc-custom-order__auth {
    text-align: center;
    padding: 60px 20px;
    color: var(--bc-muted, #9ca3af);
}

.bc-custom-order__auth a {
    color: var(--bc-accent, #dc2626);
    font-weight: 600;
}

/* Enterprise gate */
.bc-custom-order__gate {
    text-align: center;
    padding: 60px 24px 80px;
}

.bc-custom-order__gate-icon {
    color: var(--bc-grey-300, #d1d5db);
    margin-bottom: 20px;
}

.bc-custom-order__gate-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bc-text, #111827);
    margin: 0 0 12px;
}

.bc-custom-order__gate-text {
    color: var(--bc-text-secondary, #4b5563);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 28px;
}

.bc-custom-order__gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--bc-accent, #dc2626);
    border-radius: var(--bc-radius-pill, 100px);
    text-decoration: none;
    transition: background 0.2s;
}

.bc-custom-order__gate-btn:hover {
    background: var(--bc-accent-hover, #c41e1e);
    color: #fff;
}

/* Tabs */
.bc-custom-order__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--bc-grey-100, #f1f3f5);
    padding-bottom: 0;
}

.bc-custom-order__tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    color: var(--bc-text-secondary, #4b5563);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: inherit;
}

.bc-custom-order__tab:hover {
    color: var(--bc-text, #111827);
}

.bc-custom-order__tab.is-active {
    color: var(--bc-accent, #dc2626);
    border-bottom-color: var(--bc-accent, #dc2626);
}

.bc-custom-order__tab--locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.bc-custom-order__lock {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bc-navy, #0a1628);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Panels */
.bc-custom-order__panel {
    display: none;
}

.bc-custom-order__panel.is-active {
    display: block;
}

.bc-custom-order__panel-desc {
    color: var(--bc-text-secondary, #4b5563);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Form */
.bc-custom-order__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bc-custom-order__section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bc-text, #111827);
    margin: 8px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--bc-grey-100, #f1f3f5);
}

.bc-custom-order__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bc-custom-order__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-custom-order__group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bc-text, #111827);
}

.bc-custom-order__group .req {
    color: var(--bc-accent, #dc2626);
}

.bc-custom-order__group input[type="text"],
.bc-custom-order__group input[type="url"],
.bc-custom-order__group input[type="number"],
.bc-custom-order__group textarea,
.bc-custom-order__group select {
    padding: 10px 14px;
    border: 1.5px solid var(--bc-grey-200, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--bc-text, #111827);
    background: var(--bc-bg, #fff);
    transition: border-color 0.2s;
}

.bc-custom-order__group input:focus,
.bc-custom-order__group textarea:focus {
    outline: none;
    border-color: var(--bc-accent, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.bc-custom-order__group input[type="file"] {
    font-size: 13px;
    color: var(--bc-text-secondary, #4b5563);
}

/* URL row */
.bc-custom-order__url-row {
    display: flex;
    gap: 8px;
}

.bc-custom-order__url-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--bc-grey-200, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--bc-text, #111827);
}

.bc-custom-order__url-row input:focus {
    outline: none;
    border-color: var(--bc-accent, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.bc-custom-order__fetch-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--bc-navy, #0a1628);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
}

.bc-custom-order__fetch-btn:hover {
    background: #162140;
}

.bc-custom-order__fetch-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Product preview */
.bc-custom-order__preview {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bc-grey-50, #f9fafb);
    border-radius: 12px;
    border: 1px solid var(--bc-grey-100, #f1f3f5);
}

.bc-custom-order__preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bc-grey-100, #f1f3f5);
}

.bc-custom-order__preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bc-text, #111827);
}

.bc-custom-order__preview-price {
    font-size: 13px;
    color: var(--bc-muted, #9ca3af);
    margin-top: 4px;
}

/* Total */
.bc-custom-order__total {
    padding: 16px 20px;
    background: var(--bc-grey-50, #f9fafb);
    border-radius: 12px;
    font-size: 15px;
    color: var(--bc-text, #111827);
}

.bc-custom-order__total strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--bc-navy, #0a1628);
    margin-left: 8px;
}

.bc-custom-order__no-fee {
    display: inline-block;
    margin-left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 100px;
}

/* Submit */
.bc-custom-order__actions {
    padding-top: 8px;
}

.bc-custom-order__submit {
    padding: 14px 40px;
    border: none;
    border-radius: 14px;
    background: var(--bc-accent, #dc2626);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    font-family: inherit;
}

.bc-custom-order__submit:hover {
    background: #c41f1f;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.bc-custom-order__submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Status */
.bc-custom-order__status {
    font-size: 13px;
    min-height: 20px;
}

.bc-custom-order__status--error {
    color: #dc2626;
    background: #fef2f2;
    padding: 10px 14px;
    border-radius: 8px;
}

.bc-custom-order__status--ok {
    color: #059669;
    background: #ecfdf5;
    padding: 10px 14px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .bc-custom-order__row {
        grid-template-columns: 1fr;
    }

    .bc-custom-order__url-row {
        flex-direction: column;
    }

    .bc-custom-order__title {
        font-size: 28px;
    }
}

/* ── Variant selection rows ── */
.bc-custom-order__variants-wrap {
    margin: 20px 0 0;
}

.bc-custom-order__variants-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bc-text, #111827);
    margin: 0 0 12px;
}

.bc-custom-order__variants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bc-co-variant-row {
    border: 1px solid var(--bc-grey-200, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.bc-co-variant-row:has(.bc-co-variant-cb:checked) {
    border-color: var(--bc-navy, #0a1628);
}

.bc-co-variant-row__label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    background: var(--bc-bg, #fff);
    user-select: none;
}

.bc-co-variant-row__label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bc-navy, #0a1628);
    flex-shrink: 0;
    cursor: pointer;
}

.bc-co-variant-row__thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bc-grey-100, #f3f4f6);
    flex-shrink: 0;
    border: 1px solid var(--bc-grey-200, #e5e7eb);
}

.bc-co-variant-row__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bc-text, #111827);
    flex: 1;
}

.bc-co-variant-row__listed {
    font-size: 0.8rem;
    color: var(--bc-muted, #9ca3af);
    white-space: nowrap;
}

.bc-co-variant-row__inputs {
    padding: 12px 16px 16px;
    background: var(--bc-cream, #fafaf8);
    border-top: 1px solid var(--bc-grey-100, #f3f4f6);
}

.bc-custom-order__variants-total {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bc-text, #111827);
}

.bc-custom-order__no-variants {
    margin-top: 16px;
}

@media (max-width: 480px) {
    .bc-co-variant-row__label {
        flex-wrap: wrap;
    }
}
