/* ==========================================================================
   ELITE_DIGSPACE — public domain search shortcode (1.9.0)

   One shared skeleton, five skins. Everything is namespaced under .eds-ds so
   the widget cannot inherit from or leak into a theme's styles.
   ========================================================================== */

.eds-ds,
.eds-ds *,
.eds-ds *::before,
.eds-ds *::after {
    box-sizing: border-box;
}

.eds-ds {
    --eds-ds-blue: #0328bc;
    --eds-ds-ink: #0b1736;
    --eds-ds-accent: #60a5fa;
    --eds-ds-green: #15803d;
    --eds-ds-green-line: #22c55e;
    --eds-ds-red: #b91c1c;
    --eds-ds-red-line: #ef4444;
    --eds-ds-amber: #92400e;
    --eds-ds-amber-line: #f59e0b;
    --eds-ds-radius: 60px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

.eds-ds__inner {
    max-width: 960px;
    margin: 0 auto;
}

.eds-ds__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.eds-ds :focus-visible {
    outline: 3px solid var(--eds-ds-accent);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Shared copy block
   -------------------------------------------------------------------------- */

.eds-ds__badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 60px;
    margin: 0 0 20px;
}

.eds-ds__title {
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
}

.eds-ds__sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin: 0 0 32px;
    max-width: 640px;
}

.eds-ds__foot {
    font-size: 0.9rem;
    margin: 20px 0 0;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Shared search row
   -------------------------------------------------------------------------- */

.eds-ds__form {
    margin: 0;
}

.eds-ds__row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: var(--eds-ds-radius);
    padding: 8px 8px 8px 26px;
    box-shadow: 0 12px 32px rgba(11, 23, 54, 0.18);
    transition: box-shadow 0.25s ease;
}

.eds-ds__row:focus-within {
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.45);
}

.eds-ds__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0b1736;
    padding: 14px 0;
}

.eds-ds__input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.eds-ds__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 16px 38px;
    border-radius: var(--eds-ds-radius);
    background: #000000;
    color: #ffffff;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.eds-ds__btn:hover:not(:disabled) {
    background: var(--eds-ds-blue);
    transform: translateY(-1px);
}

.eds-ds__btn:disabled {
    cursor: progress;
    opacity: 0.75;
}

.eds-ds__btn-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: eds-ds-spin 0.7s linear infinite;
}

.eds-ds.is-loading .eds-ds__btn-spinner {
    display: inline-block;
}

@keyframes eds-ds-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .eds-ds__btn-spinner { animation-duration: 2s; }
    .eds-ds__message { animation: none !important; }
}

/* --------------------------------------------------------------------------
   TLD price pills
   -------------------------------------------------------------------------- */

.eds-ds__tlds {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.eds-ds__tld {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.92rem;
    background: rgba(3, 40, 188, 0.07);
    border: 1px solid rgba(3, 40, 188, 0.16);
    color: #0b1736;
}

.eds-ds__tld-name { font-weight: 800; }
.eds-ds__tld-price { font-weight: 600; opacity: 0.8; }

/* --------------------------------------------------------------------------
   Result panel
   -------------------------------------------------------------------------- */

.eds-ds__result:empty {
    display: none;
}

.eds-ds__result {
    margin-top: 28px;
}

.eds-ds__message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 26px;
    border-radius: 18px;
    background: #ffffff;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: left;
    animation: eds-ds-rise 0.28s ease-out;
    box-shadow: 0 10px 26px rgba(11, 23, 54, 0.1);
}

@keyframes eds-ds-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.eds-ds__message--available { color: var(--eds-ds-green); border: 2px solid var(--eds-ds-green-line); }
.eds-ds__message--taken     { color: var(--eds-ds-red);   border: 2px solid var(--eds-ds-red-line); }
.eds-ds__message--error     { color: var(--eds-ds-amber); border: 2px solid var(--eds-ds-amber-line); }

.eds-ds__message-body {
    flex: 1 1 260px;
    min-width: 0;
}

.eds-ds__message-text {
    display: block;
}

.eds-ds__domain {
    font-weight: 800;
    color: #0b1736;
    word-break: break-all;
}

.eds-ds__price {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1736;
}

.eds-ds__note {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}

.eds-ds__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.eds-ds__register {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 40px;
    background: var(--eds-ds-green);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(21, 128, 61, 0.28);
    transition: background 0.2s ease, transform 0.2s ease;
}

.eds-ds__register:hover,
.eds-ds__register:focus {
    background: #116634;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.eds-ds__register::after {
    content: '\2192';
    font-size: 1.15em;
    line-height: 1;
}

.eds-ds__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(11, 23, 54, 0.18);
    background: #ffffff;
    color: #0b1736;
    padding: 12px 20px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.eds-ds__copy-btn:hover { background: #f3f4f6; }
.eds-ds__copy-btn.is-copied {
    background: var(--eds-ds-green);
    border-color: var(--eds-ds-green);
    color: #ffffff;
}

/* ==========================================================================
   DESIGN 1 — Hero Gradient
   ========================================================================== */

.eds-ds--v1 {
    background: linear-gradient(135deg, #0b1736 0%, #0328bc 100%);
    color: #ffffff;
    padding: 84px 24px;
    text-align: center;
    border-radius: 0;
}

.eds-ds--v1 .eds-ds__copy { text-align: center; }
.eds-ds--v1 .eds-ds__badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
.eds-ds--v1 .eds-ds__title { color: #ffffff; }
.eds-ds--v1 .eds-ds__highlight { color: var(--eds-ds-accent); }
.eds-ds--v1 .eds-ds__sub { color: #dbe4ff; margin-left: auto; margin-right: auto; }
.eds-ds--v1 .eds-ds__row { max-width: 780px; margin: 0 auto; }
.eds-ds--v1 .eds-ds__tld {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.eds-ds--v1 .eds-ds__foot { color: #c7d3f5; text-align: center; }

/* ==========================================================================
   DESIGN 2 — Split Card
   ========================================================================== */

.eds-ds--v2 {
    background: #f5f7fc;
    padding: 56px 28px;
    border-radius: 26px;
    color: #0b1736;
}

.eds-ds--v2 .eds-ds__inner {
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
}

.eds-ds--v2 .eds-ds__badge {
    background: rgba(3, 40, 188, 0.1);
    border: 1px solid rgba(3, 40, 188, 0.18);
    color: var(--eds-ds-blue);
}
.eds-ds--v2 .eds-ds__title { color: #0b1736; }
.eds-ds--v2 .eds-ds__highlight { color: var(--eds-ds-blue); }
.eds-ds--v2 .eds-ds__sub { color: #4b5563; margin-bottom: 0; }
.eds-ds--v2 .eds-ds__panel {
    background: #ffffff;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 20px 46px rgba(11, 23, 54, 0.1);
}
.eds-ds--v2 .eds-ds__row {
    box-shadow: none;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
}
.eds-ds--v2 .eds-ds__btn { border-radius: 12px; padding: 15px 28px; background: var(--eds-ds-blue); }
.eds-ds--v2 .eds-ds__btn:hover:not(:disabled) { background: #0b1736; }
.eds-ds--v2 .eds-ds__tlds { justify-content: flex-start; }
.eds-ds--v2 .eds-ds__message { box-shadow: none; }
.eds-ds--v2 .eds-ds__foot { grid-column: 1 / -1; text-align: center; color: #4b5563; }

@media (max-width: 860px) {
    .eds-ds--v2 .eds-ds__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   DESIGN 3 — Minimal Inline
   ========================================================================== */

.eds-ds--v3 {
    background: transparent;
    padding: 0;
    color: inherit;
}

.eds-ds--v3 .eds-ds__inner { max-width: 720px; }

.eds-ds--v3 .eds-ds__row {
    background: #ffffff;
    border: 2px solid #d8dce6;
    border-radius: 14px;
    box-shadow: none;
    padding: 5px 5px 5px 16px;
}

.eds-ds--v3 .eds-ds__row:focus-within {
    border-color: var(--eds-ds-blue);
    box-shadow: 0 0 0 3px rgba(3, 40, 188, 0.14);
}

.eds-ds--v3 .eds-ds__input { font-size: 1rem; padding: 11px 0; }
.eds-ds--v3 .eds-ds__btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    background: var(--eds-ds-blue);
}
.eds-ds--v3 .eds-ds__btn:hover:not(:disabled) { background: #0b1736; }
.eds-ds--v3 .eds-ds__result { margin-top: 16px; }
.eds-ds--v3 .eds-ds__message {
    padding: 15px 18px;
    font-size: 0.98rem;
    border-radius: 12px;
    box-shadow: none;
}
.eds-ds--v3 .eds-ds__register { padding: 11px 22px; font-size: 0.92rem; }
.eds-ds--v3 .eds-ds__copy-btn { padding: 10px 16px; font-size: 0.88rem; }
.eds-ds--v3 .eds-ds__foot { font-size: 0.82rem; }

/* ==========================================================================
   DESIGN 4 — Dark Neon
   ========================================================================== */

.eds-ds--v4 {
    background: #070b18;
    color: #e5edff;
    padding: 62px 30px;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.08), 0 26px 60px rgba(3, 10, 30, 0.6);
    text-align: center;
}

.eds-ds--v4 .eds-ds__badge {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: var(--eds-ds-accent);
}
.eds-ds--v4 .eds-ds__title { color: #ffffff; }
.eds-ds--v4 .eds-ds__highlight {
    color: #7dd3fc;
    text-shadow: 0 0 22px rgba(125, 211, 252, 0.5);
}
.eds-ds--v4 .eds-ds__sub { color: #9fb2d8; margin-left: auto; margin-right: auto; }

.eds-ds--v4 .eds-ds__row {
    max-width: 740px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: inset 0 0 22px rgba(96, 165, 250, 0.08);
}
.eds-ds--v4 .eds-ds__row:focus-within {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22), inset 0 0 22px rgba(96, 165, 250, 0.16);
}
.eds-ds--v4 .eds-ds__input {
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 1.05rem;
}
.eds-ds--v4 .eds-ds__input::placeholder { color: #64748b; }
.eds-ds--v4 .eds-ds__btn {
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7dd3fc);
    color: #041028;
    font-weight: 800;
}
.eds-ds--v4 .eds-ds__btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7dd3fc, #2563eb);
}
.eds-ds--v4 .eds-ds__btn-spinner { border-color: rgba(4, 16, 40, 0.3); border-top-color: #041028; }

.eds-ds--v4 .eds-ds__tld {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    color: #cfe0ff;
}
.eds-ds--v4 .eds-ds__message {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}
.eds-ds--v4 .eds-ds__message--available { color: #4ade80; border-color: rgba(74, 222, 128, 0.55); }
.eds-ds--v4 .eds-ds__message--taken     { color: #f87171; border-color: rgba(248, 113, 113, 0.55); }
.eds-ds--v4 .eds-ds__message--error     { color: #fbbf24; border-color: rgba(251, 191, 36, 0.55); }
.eds-ds--v4 .eds-ds__domain { color: #ffffff; }
.eds-ds--v4 .eds-ds__price  { color: #cfe0ff; }
.eds-ds--v4 .eds-ds__note   { color: #94a3b8; }
.eds-ds--v4 .eds-ds__copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e5edff;
}
.eds-ds--v4 .eds-ds__copy-btn:hover { background: rgba(255, 255, 255, 0.1); }
.eds-ds--v4 .eds-ds__foot { color: #7f8fb3; }

/* ==========================================================================
   DESIGN 5 — Boxed Price Grid
   ========================================================================== */

.eds-ds--v5 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 52px 34px;
    color: #0b1736;
    text-align: center;
    box-shadow: 0 22px 50px rgba(11, 23, 54, 0.08);
}

.eds-ds--v5 .eds-ds__badge {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: var(--eds-ds-blue);
}
.eds-ds--v5 .eds-ds__title { color: #0b1736; }
.eds-ds--v5 .eds-ds__highlight { color: var(--eds-ds-blue); }
.eds-ds--v5 .eds-ds__sub { color: #4b5563; margin-left: auto; margin-right: auto; }
.eds-ds--v5 .eds-ds__row {
    max-width: 700px;
    margin: 0 auto;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: none;
    padding: 6px 6px 6px 20px;
}
.eds-ds--v5 .eds-ds__row:focus-within {
    background: #ffffff;
    border-color: var(--eds-ds-blue);
    box-shadow: 0 0 0 3px rgba(3, 40, 188, 0.13);
}
.eds-ds--v5 .eds-ds__btn { border-radius: 12px; background: var(--eds-ds-blue); }
.eds-ds--v5 .eds-ds__btn:hover:not(:disabled) { background: #0b1736; }
.eds-ds--v5 .eds-ds__tlds { margin-top: 26px; }
.eds-ds--v5 .eds-ds__tld {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 106px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f9fafb;
    border-color: #e5e7eb;
}
.eds-ds--v5 .eds-ds__tld-name { font-size: 1.05rem; color: var(--eds-ds-blue); }
.eds-ds--v5 .eds-ds__tld-price { font-size: 0.86rem; }
.eds-ds--v5 .eds-ds__foot { color: #6b7280; }

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 720px) {
    .eds-ds--v1 { padding: 56px 16px; }
    .eds-ds--v2 { padding: 36px 18px; }
    .eds-ds--v4 { padding: 42px 18px; }
    .eds-ds--v5 { padding: 38px 18px; }

    .eds-ds__row {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 12px;
        gap: 10px;
    }

    .eds-ds__input {
        text-align: center;
        padding: 12px 0;
    }

    .eds-ds--v3 .eds-ds__input,
    .eds-ds--v4 .eds-ds__input { text-align: left; }

    .eds-ds__btn {
        width: 100%;
        padding: 15px;
    }

    .eds-ds__message {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .eds-ds__actions { justify-content: center; }
    .eds-ds__register,
    .eds-ds__copy-btn { flex: 1 1 auto; justify-content: center; }
}
