/* Általános oldaldesign */
body {
    background: #f5f5f5;
}

/* Aukciós kártyák a zoldautomento.hu oldalon */
.auction-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Widget (iframe) stílusok */
.elp-auction-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    max-width: 360px;
    box-sizing: border-box;
    background: #ffffff;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.elp-auction-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.elp-auction-title {
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 4px;
}

.elp-auction-price-row {
    margin: 6px 0 10px 0;
}

.elp-auction-label {
    color: #555;
    margin-right: 6px;
}

.elp-auction-price {
    font-size: 1.2em;
    font-weight: bold;
}

.elp-auction-button {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.elp-auction-button:hover {
    background: #0056b3;
}

.elp-auction-ended {
    font-weight: bold;
    color: #c00;
}

/* ====== Mechanikus számláló jellegű ár kijelző ====== */

.price-panel {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f3f4f6;
    /* világos szürke "panel" */
    border: 1px solid #d1d5db;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 2px 4px rgba(15, 23, 42, 0.15);
}

.price-unit {
    margin-left: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #4b5563;
    font-family: "Roboto Mono", monospace;
}

/* A JS ezt a span-t fogja lapkákra bontani */
.price-digits {
    display: inline-flex;
}

/* Egyes számjegyek "lapkája" */
.digit-box {
    width: 26px;
    height: 38px;
    margin-right: 2px;
    border-radius: 4px;
    background: #f9fafb;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto Mono", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 #ffffff;
}

/* Ez adja a mechanikus, kissé süllyesztett érzetet */
.digit-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

/* Pozícionálás a ::before-hez */
.digit-box {
    position: relative;
}

/* Ezres csoportok között nagyobb rés */
.digit-box-group {
    margin-right: 8px;
}

/* Ha valamiért üres helyet tennénk be (most nem muszáj) */
.digit-box-empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* ===== Embed (iframe) kártya finomhangolás ===== */

.embed-card {
    padding: 6px 8px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.embed-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.embed-desc {
    line-height: 1.3;
}

.price-panel-compact .digit-box {
    width: 22px;
    height: 34px;
    font-size: 1rem;
}

.price-panel-compact .price-unit {
    font-size: 0.8rem;
}



/* Alap állapot – narancs/arany */
.elp-auction-button,
.btn-buy-auction {
    background-color: #D79A3E;
    border-color: #D79A3E;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover – piros */
.elp-auction-button:hover,
.btn-buy-auction:hover {
    background-color: #E53935;
    border-color: #E53935;
    color: #ffffff;
}

/* Focus (billentyű / accessibility) */
.elp-auction-button:focus,
.btn-buy-auction:focus {
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.35);
}

/* Disabled állapot (ha később kell) */
.elp-auction-button:disabled,
.btn-buy-auction:disabled {
    background-color: #bdbdbd;
    border-color: #bdbdbd;
    cursor: not-allowed;
    box-shadow: none;
}