/* Code Ajánlatkérés – látogatói felület.
   A gombok a téma .button stílusát öröklik, itt csak az elrendezés és a saját elemek. */

.caq-button {
    display: inline-block;
    margin-top: .5em;
}

.caq-button--loop {
    display: block;
    width: fit-content;
}

.caq-button--single {
    margin-left: .5em;
    vertical-align: middle;
}

.caq-button--added {
    opacity: .75;
}

.caq-price-hidden {
    font-style: italic;
    opacity: .8;
}

/* Lebegő gomb */
.caq-floating {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: #1f2937;
    color: #fff;
    font-size: .95rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}

.caq-floating:hover,
.caq-floating:focus {
    color: #fff;
    text-decoration: none;
}

.caq-floating--empty {
    display: none;
}

.caq-floating__count {
    display: inline-flex;
    min-width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
    font-size: .8rem;
}

/* Számláló rövidkód */
.caq-counter {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* Ajánlatkérő oldal */
.caq-notice {
    margin: 0 0 1.5em;
    padding: 1em 1.25em;
    border-left: 4px solid #1f2937;
    background: #f5f6f7;
}

.caq-notice--success {
    border-left-color: #2f7d32;
}

.caq-notice--error {
    border-left-color: #c0392b;
}

.caq-notice ul {
    margin: 0;
    padding-left: 1.2em;
}

.caq-notice p:last-child {
    margin-bottom: 0;
}

.caq-items {
    width: 100%;
    margin-bottom: 2em;
}

.caq-items__thumb {
    width: 72px;
}

.caq-items__thumb img {
    width: 72px;
    height: auto;
    display: block;
}

.caq-items__sku {
    display: block;
    font-size: .85em;
    opacity: .7;
}

.caq-items__quantity .caq-qty {
    width: 6em;
}

.caq-remove {
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    line-height: 1.5em;
    text-align: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.2em;
    color: #c0392b;
}

.caq-remove:hover,
.caq-remove:focus {
    background: #c0392b;
    color: #fff;
}

.caq-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.caq-field--wide,
.caq-field--consent {
    grid-column: 1 / -1;
}

.caq-field label {
    display: block;
    margin-bottom: .3em;
    font-weight: 600;
}

.caq-field input[type="text"],
.caq-field input[type="email"],
.caq-field input[type="tel"],
.caq-field textarea {
    width: 100%;
}

.caq-field--consent label {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-weight: 400;
}

.caq-field--consent input {
    margin-top: .25em;
}

/* A robotcsapda mezője nem tűnhet el display:none-nal, mert azt a robotok felismerik. */
.caq-honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.caq-actions {
    margin-top: 1.5em;
}

.caq-submit[disabled] {
    opacity: .6;
    cursor: progress;
}

@media (max-width: 600px) {
    .caq-fields {
        grid-template-columns: 1fr;
    }

    .caq-items__thumb {
        display: none;
    }
}

/* Blokk alapú terméklistában a kosárgomb alá kerül. */
.caq-button--block {
    display: block;
    margin: .5em auto 0;
    width: fit-content;
}

.caq-hint {
    display: block;
    margin-top: .3em;
    font-size: .85em;
    opacity: .75;
}
