/**
 * 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
 */
/* Points on the product page, in the cart and on the order confirmation. The look follows the
   theme: text colour, the theme's buttons and fields; only spacing and layout are set here. */
.pshuvc-loy {
    --pshuvc-loy-line: rgba(0, 0, 0, 0.12);
    --pshuvc-loy-line: color-mix(in srgb, currentColor 14%, transparent);
    --pshuvc-loy-soft: rgba(0, 0, 0, 0.03);
    --pshuvc-loy-soft: color-mix(in srgb, currentColor 4%, transparent);
    --pshuvc-loy-muted: rgba(0, 0, 0, 0.62);
    --pshuvc-loy-muted: color-mix(in srgb, currentColor 64%, transparent);
    margin: 0.75rem 0;
}
/* Placed straight into a theme card without inner padding (cart summary): keep it off the card edge. */
.card > .pshuvc-loy {
    margin: 1rem;
}
.pshuvc-loy[hidden],
.pshuvc-loy:empty {
    display: none;
}
.pshuvc-loy .pshuvc-loy-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
    margin: 0;
    line-height: 1.45;
}
.pshuvc-loy .pshuvc-loy-icon {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
    opacity: 0.8;
}
.pshuvc-loy .pshuvc-loy-line > span {
    flex: 1 1 12rem;
    min-width: 0;
}
.pshuvc-loy .pshuvc-loy-level {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.875em;
    opacity: 0.8;
}
.pshuvc-loy .pshuvc-loy-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pshuvc-loy .pshuvc-loy-line > .pshuvc-loy-link {
    flex: 1 0 100%;
    padding-left: 1.625rem;
}
.pshuvc-loy .pshuvc-loy-box,
.pshuvc-loy--confirmation {
    padding: 0.875rem 1rem;
    border: 1px solid var(--pshuvc-loy-line);
    border-radius: 6px;
    background: var(--pshuvc-loy-soft);
}
.pshuvc-loy .pshuvc-loy-redeem {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pshuvc-loy-line);
}
.pshuvc-loy .pshuvc-loy-box > .pshuvc-loy-redeem:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.pshuvc-loy .pshuvc-loy-balance {
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.pshuvc-loy .pshuvc-loy-label {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
}
.pshuvc-loy .pshuvc-loy-row {
    display: flex;
    gap: 0.5rem;
}
.pshuvc-loy .pshuvc-loy-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
}
.pshuvc-loy .pshuvc-loy-apply {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
}
.pshuvc-loy .pshuvc-loy-hint {
    margin: 0.375rem 0 0;
    color: var(--pshuvc-loy-muted);
    font-size: 0.8125rem;
}
.pshuvc-loy .pshuvc-loy-applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.pshuvc-loy .pshuvc-loy-remove {
    min-height: 44px;
    /* some themes draw btn-link as a filled button: keep the label off its edges */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: nowrap;
}
.pshuvc-loy .pshuvc-loy-error {
    margin: 0.5rem 0 0;
    font-weight: 600;
}
/* Fixed-price ways of using points (percentage off, free shipping): one row each. */
.pshuvc-loy .pshuvc-loy-options {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}
.pshuvc-loy .pshuvc-loy-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--pshuvc-loy-line);
}
.pshuvc-loy .pshuvc-loy-option-text {
    display: flex;
    flex: 1 1 12rem;
    flex-direction: column;
    min-width: 0;
}
.pshuvc-loy .pshuvc-loy-option-text .pshuvc-loy-hint {
    margin-top: 0.125rem;
}
.pshuvc-loy .pshuvc-loy-option.is-off strong {
    color: var(--pshuvc-loy-muted);
}
.pshuvc-loy .pshuvc-loy-use {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
}
.pshuvc-loy.is-busy {
    opacity: 0.6;
    transition: opacity 120ms ease-out;
}
@media (max-width: 575px) {
    .pshuvc-loy .pshuvc-loy-row {
        flex-direction: column;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pshuvc-loy.is-busy {
        transition: none;
    }
}

/* Touch target on narrow screens: the join or points link gets a 44px high tap area */
@media (max-width: 767.98px) {
    .pshuvc-loy .pshuvc-loy-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}
