/**
 * @author    Sigmanortec SRL <office@sigmanortec.ro>
 * @copyright 2024 Sigmanortec SRL
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */
.sigmapm-block {
    margin: 12px 0;
}

.sigmapm-trigger {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sigmapm-trigger:hover,
.sigmapm-trigger:focus {
    text-decoration: none;
    opacity: .8;
}

.sigmapm-hint,
.sigmapm-taxlabel {
    font-size: .85em;
    opacity: .7;
}

.sigmapm-note {
    padding: 8px 12px;
    border-left: 3px solid #bbb;
    background: #f6f6f6;
    margin: 0;
}

.sigmapm-note--ok {
    border-left-color: #4caf50;
}

.sigmapm-modal {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .5);
    overflow-y: auto;
}

.sigmapm-modal[hidden] {
    display: none;
}

.sigmapm-modal__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    background: #fff;
    border-radius: 4px;
}

.sigmapm-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sigmapm-current {
    padding: 8px 12px;
    background: #f6f6f6;
    border-radius: 3px;
}

.sigmapm-field {
    margin-bottom: 12px;
}

.sigmapm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.sigmapm-field input,
.sigmapm-field textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.sigmapm-field--half {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.sigmapm-field--half + .sigmapm-field--half {
    margin-left: 3%;
}

.sigmapm-feedback {
    min-height: 20px;
    margin: 8px 0;
    font-size: .9em;
}

.sigmapm-feedback--error {
    color: #c62828;
}

.sigmapm-feedback--ok {
    color: #2e7d32;
}

.sigmapm-modal-open {
    overflow: hidden;
}

.sigmapm-offers__note td {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 480px) {
    .sigmapm-field--half {
        width: 100%;
        margin-left: 0;
    }
}

.sigmapm-pre {
    white-space: pre-line;
}
