/* CloudZexDomain styles, served by the extension itself (theme-independent) */

/* ---- domain-checkout-widget: page wrapper ---- */
.czd-wrap {
    max-width: var(--container-max-width);
}

/* ---- toggle switches (checkout + management): track colour and knob position ---- */
.czd-toggle--on { background-color: #059669; }
.czd-toggle--off-light { background-color: #cbd5e1; }
.czd-toggle--off-slate { background-color: #475569; }
.czd-toggle--off-rose { background-color: #e11d48; }
.czd-knob--on { transform: translateX(20px); }
.czd-knob--off { transform: translateX(0px); }

/* ---- domain-checkout-widget: .bd document fields ---- */
.czd-input-42 {
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box;
}

/* File inputs: equal top/bottom padding (same rules the theme uses for its own cart) */
.czd-file-input {
    display: flex !important;
    align-items: center !important;
    padding: 0 0 0 8px !important;
    overflow: hidden;
}

.czd-file-input::file-selector-button,
.czd-file-input::-webkit-file-upload-button {
    height: 100% !important;
    padding: 0 12px !important;
    margin-right: 10px !important;
    margin-left: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    align-self: stretch !important;
    flex-shrink: 0;
    background-color: hsl(var(--color-primary)) !important;
    color: #ffffff !important;
}

.czd-file-input:hover::file-selector-button,
.czd-file-input:hover::-webkit-file-upload-button {
    opacity: 0.9;
}

/* ---- domain-checkout-widget: validation boxes ---- */
.czd-alert-docs {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: #fef2f2;
    border: 1.5px solid #ef4444;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.czd-alert {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #fef2f2;
    border: 1.5px solid #ef4444;
    color: #dc2626;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.czd-alert-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 8px;
}

.czd-alert-list {
    list-style-type: disc;
    padding-left: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #dc2626;
}

/* ---- domain-checkout-widget: sticky order summary ---- */
.czd-sticky {
    position: sticky;
    top: 9rem;
    z-index: 10;
}

/* ---- client-domains-widget: "register a domain" button ---- */
.czd-btn-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ---- domain-order: theme-independent search page (/domain/order) ---- */
.czd-order { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.czd-order-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.czd-order-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.czd-order-tab { padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid rgba(127, 127, 127, 0.35); background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.czd-order-tab-active { border-color: currentColor; background: rgba(127, 127, 127, 0.15); }
.czd-order-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.czd-order-field { flex: 0 1 12rem; min-width: 0; }
.czd-order-field-grow { flex: 1 1 18rem; }
.czd-order-submit { flex: 0 0 auto; }
.czd-order-error { margin-top: 1rem; color: #dc2626; }
.czd-order-results { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.czd-order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem; border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 0.5rem; }
.czd-order-name { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1 1 14rem; }
.czd-order-domain { font-weight: 700; word-break: break-all; }
.czd-order-badge { font-size: 0.85rem; opacity: 0.8; }
.czd-order-badge-taken { color: #dc2626; opacity: 1; font-weight: 600; }
.czd-order-badge-ok { color: #16a34a; opacity: 1; font-weight: 600; }
.czd-order-price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex: 0 1 auto; }
.czd-order-amount { font-weight: 700; font-size: 1.1rem; }
.czd-order-renewal { font-size: 0.8rem; opacity: 0.75; }
.czd-order-action { flex: 0 0 auto; }
@media (max-width: 640px) {
    .czd-order-price { align-items: flex-start; }
    .czd-order-action, .czd-order-action > * { width: 100%; }
}

/* Owner details asked before the cart (.bd) */
.czd-order-owner { flex-basis: 100%; width: 100%; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(127, 127, 127, 0.25); }
.czd-order-owner-help { flex-basis: 100%; margin: 0; font-size: 0.875rem; opacity: 0.8; }
.czd-order-owner .czd-order-field { flex: 1 1 14rem; }
.czd-order-owner .czd-order-submit { flex: 0 0 auto; display: flex; gap: 0.5rem; align-items: center; }
.czd-order-more { display: flex; justify-content: center; margin-top: 1rem; }
.czd-order-more-btn { width: 100%; padding: 0.75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(127, 127, 127, 0.35); background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.czd-order-more-btn:hover { background: rgba(127, 127, 127, 0.15); }
.czd-order-more-btn:disabled { opacity: 0.6; cursor: wait; }
.czd-order-owner-cancel { background: none; border: 0; padding: 0.5rem; font-size: 0.875rem; text-decoration: underline; cursor: pointer; color: inherit; }
