/* ============================================================
   Domínio Checker for WooCommerce — Public Styles v1.2.0
   Author: António Oliveira / Portal PME
   Colours for result boxes, buttons and auth-code block
   are applied via inline styles (appearance settings).
   ============================================================ */

.dc-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

.dc-title {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* ----- Search form ----- */
.dc-form { width: 100%; }

.dc-input-group {
    display: flex;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
}

.dc-input {
    flex: 1;
    padding: .8rem 1.1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-right: none;
    /* border-radius set via JS */
    outline: none;
    transition: border-color .2s;
    background: #fff;
    color: #333;
    min-width: 0;
}
.dc-input:focus { border-color: #0073aa; }

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter .15s;
    white-space: nowrap;
}
.dc-btn-search {
    /* background, color, border-radius: set via JS */
    min-width: 110px;
}
.dc-btn-search:hover    { filter: brightness(.88); }
.dc-btn-search:disabled { opacity: .65; cursor: not-allowed; filter: none; }

/* ----- Spinner ----- */
.dc-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dc-spin .7s linear infinite;
    flex-shrink: 0;
}
.dc-btn-search.dc-loading .dc-btn-label { display: none; }
.dc-btn-search.dc-loading .dc-spinner   { display: inline-block; }
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* ----- TLD badges ----- */
.dc-tld-badges {
    display: flex; flex-wrap: wrap; gap: .35rem;
    margin-top: .7rem; justify-content: center;
}
.dc-tld-badge {
    background: #f0f4f8; color: #555;
    font-size: .75rem; padding: .18rem .5rem;
    border-radius: 20px; border: 1px solid #d8dfe6;
    font-family: monospace; letter-spacing: .02em;
}

/* ----- Result boxes ----- */
/* Width is 100% by default; max-width & colours set via inline style */
.dc-result {
    width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
    padding: 1.1rem 1.35rem;
    border: 1px solid transparent;
    /* border-radius, background, color, max-width: set via JS */
    animation: dc-fade-in .25s ease;
    line-height: 1.5;
}
@keyframes dc-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dc-result__domain {
    font-weight: 700;
    font-size: 1.05rem;
    font-family: monospace;
    vertical-align: middle;
}
.dc-result__status  { font-size: .95rem; margin: .45rem 0 .2rem; }
.dc-result__price   { font-size: .88rem; color: inherit; opacity: .8; margin-bottom: .5rem; }

/* ----- PNG icons ----- */
.dc-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ----- Cart action area ----- */
.dc-cart-actions {
    display: flex; flex-wrap: wrap; gap: .65rem;
    margin-top: .9rem; width: 100%;
}

/* CTA buttons — all colours/radius via inline style */
.dc-btn-cart {
    padding: .6rem 1.2rem;
    font-size: .93rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    border: 2px solid transparent;
    transition: filter .15s;
    display: inline-flex; align-items: center; gap: .35rem;
}
.dc-btn-cart:hover    { filter: brightness(.88); }
.dc-btn-cart:disabled { opacity: .6; cursor: not-allowed; filter: none; }

/* ----- Auth-code block ----- */
/* Background, border, radius set via inline style */
.dc-auth-code-wrap {
    box-sizing: border-box;
    padding: .85rem 1rem;
    margin-bottom: .2rem;
}
.dc-auth-code-label {
    display: block;
    font-size: .88rem; font-weight: 600;
    /* color set via inline style */
    margin-bottom: .35rem;
}
.dc-auth-code-input {
    width: 100%; max-width: 340px;
    padding: .55rem .8rem;
    font-size: .93rem;
    border: 1.5px solid #d1d5db;
    /* border-color, background: set via inline style */
    border-radius: 5px;
    outline: none;
    font-family: monospace; letter-spacing: .04em;
    transition: border-color .18s;
    box-sizing: border-box;
}
.dc-auth-code-input:focus { border-color: #6b7280; }
.dc-auth-code-hint {
    font-size: .8rem;
    /* color: set via inline style */
    margin: .3rem 0 0; line-height: 1.45;
}

/* ----- Added-to-cart notice ----- */
.dc-added-notice {
    display: flex; align-items: center; gap: .45rem;
    padding: .7rem 1rem;
    background: #f0fdf4; border: 1px solid #86efac;
    border-radius: 6px;
    font-size: .93rem; color: #166534;
    margin-top: .9rem;
    animation: dc-fade-in .25s ease;
}

/* ----- Responsive ----- */
@media ( max-width: 480px ) {
    .dc-input-group  { flex-direction: column; }
    .dc-input        { border-right: 2px solid #e0e0e0; border-bottom: none;
                       border-radius: 8px 8px 0 0 !important; }
    .dc-btn-search   { border-radius: 0 0 8px 8px !important; width: 100%; }
    .dc-cart-actions { flex-direction: column; }
    .dc-result       { max-width: 100% !important; }
    .dc-auth-code-wrap { max-width: 100% !important; }
}

/* ----- Locked qty in cart (domain products always qty 1) ----- */
.dc-qty-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    color: #555;
    font-size: .95rem;
    font-weight: 600;
    cursor: default;
}
