/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */

.pshuquote-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.pshuquote-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pshuquote-form fieldset, .pshuquote-quote section { margin-bottom: 1.5rem; }
.pshuquote-form legend, .pshuquote-quote h2 { font-size: 1.125rem; font-weight: 600; }
.pshuquote-item { align-items: end; margin-bottom: 0.5rem; }
.pshuquote-table-wrap { position: relative; max-width: 100%; overflow-x: auto; margin-bottom: 1rem; }
.pshuquote-table-wrap > .table { margin-bottom: 0; }
.pshuquote-lines { width: 100%; }
.pshuquote-lines th, .pshuquote-lines td { vertical-align: top; }
.pshuquote-terms { max-height: 12rem; overflow: auto; padding: 0.75rem; margin-bottom: 1rem; border: 1px solid currentColor; border-radius: 4px; }
.pshuquote-msg { padding: 0.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.pshuquote-msg-merchant { padding-left: 0.75rem; border-left: 3px solid currentColor; }
.pshuquote-cart-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0; }
.pshuquote-share-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pshuquote-quote button:focus-visible, .pshuquote-quote a:focus-visible, .pshuquote-form button:focus-visible, .pshuquote-actions a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 575px) {
    .pshuquote-actions .btn, .pshuquote-cart-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pshuquote-form *, .pshuquote-quote * { transition: none !important; animation: none !important; }
}

.pshuquote-file {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: .25rem 0 .5rem;
}

.pshuquote-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pshuquote-file-input:focus-visible + .pshuquote-file-choose {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.pshuquote-file-choose {
    margin: 0;
    cursor: pointer;
}

.pshuquote-file-title {
    display: block;
}

/* WCAG AA contrast. Tokens are scoped to the module's own wrappers. The --bs-* fallbacks keep
   Bootstrap 5 themes (Hummingbird) on their own colours; the token values apply on themes that
   do not define them (classic: cyan buttons, grey #7a7a7a text, cyan links). */
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) {
    --pshuquote-text: var(--bs-body-color, #232323);
    --pshuquote-muted: var(--bs-secondary-color, #595959);
    --pshuquote-link: var(--bs-link-color, #0b6b7e);
    --pshuquote-button: #0b6b7e;
    --pshuquote-button-hover: #08505f;
    --pshuquote-button-text: #ffffff;
    color: var(--pshuquote-text);
}
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) :is(p, td, th, li, label, legend, h2, small, .form-control):not(.btn) { color: var(--pshuquote-text); }
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) .text-muted { color: var(--pshuquote-muted) !important; }
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) a:not(.btn) { color: var(--pshuquote-link); }
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) .btn-link { color: var(--bs-btn-color, var(--pshuquote-link)); }
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) .btn-primary {
    color: var(--bs-btn-color, var(--pshuquote-button-text));
    background-color: var(--bs-btn-bg, var(--pshuquote-button));
    border-color: var(--bs-btn-border-color, var(--pshuquote-button));
}
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) .btn-primary:is(:hover, :focus, :active, .active) {
    color: var(--bs-btn-hover-color, var(--pshuquote-button-text));
    background-color: var(--bs-btn-hover-bg, var(--pshuquote-button-hover));
    border-color: var(--bs-btn-hover-border-color, var(--pshuquote-button-hover));
}
:is(.pshuquote-actions, .pshuquote-form, .pshuquote-quote, .pshuquote-share, .pshuquote-account, .pshuquote-message, .pshuquote-cart) .badge-primary { color: var(--pshuquote-button-text); background-color: var(--pshuquote-button); }
