
.smitacs-rt {
    --rt-primary: #145b50;
    --rt-primary-dark: #0d443c;
    --rt-soft: #e9f4f0;
    --rt-border: #d9e5e1;
    --rt-muted: #61716d;
    --rt-text: #1c2926;

    max-width: 1080px;
    margin: 24px auto;
    padding: clamp(14px, 3vw, 30px);
    color: var(--rt-text);
    background: #f7faf9;
    border: 1px solid var(--rt-border);
    border-radius: 18px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.55;
}

.smitacs-rt *,
.smitacs-rt *::before,
.smitacs-rt *::after {
    box-sizing: border-box;
}

.smitacs-rt [hidden] {
    display: none !important;
}

.smitacs-rt__header {
    padding: clamp(20px, 4vw, 34px);
    margin-bottom: 22px;
    border-radius: 14px;
    background: linear-gradient(130deg, #e3f3ee, #f3f8f6);
}

.smitacs-rt__eyebrow {
    display: inline-block;
    color: var(--rt-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.smitacs-rt__header h2 {
    margin: 8px 0 10px;
    color: #173a34;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.smitacs-rt__header p,
.smitacs-rt__panel > p {
    margin: 8px 0 0;
    color: var(--rt-muted);
    line-height: 1.7;
}

.smitacs-rt__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.smitacs-rt button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--rt-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.smitacs-rt button:hover {
    background: var(--rt-primary-dark);
}

.smitacs-rt button:focus-visible,
.smitacs-rt input:focus-visible,
.smitacs-rt select:focus-visible,
.smitacs-rt textarea:focus-visible {
    outline: 3px solid #8bc9b8;
    outline-offset: 2px;
}

.smitacs-rt button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.smitacs-rt__tabs button {
    background: #e7efed;
    color: #264c45;
}

.smitacs-rt__tabs button:hover {
    background: #dcebe6;
}

.smitacs-rt__tabs button.is-active {
    background: var(--rt-primary);
    color: #fff;
}

.smitacs-rt__panel {
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--rt-border);
    border-radius: 14px;
    background: #fff;
}

.smitacs-rt__panel h3 {
    margin: 0 0 8px;
    color: #173a34;
    font-size: 1.25rem;
}

.smitacs-rt__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.smitacs-rt__section-heading p {
    margin: 5px 0 0;
    color: var(--rt-muted);
}

.smitacs-rt .smitacs-rt__button-secondary {
    border-color: var(--rt-border);
    background: #fff;
    color: var(--rt-primary);
}

.smitacs-rt .smitacs-rt__button-secondary:hover {
    background: var(--rt-soft);
}

.smitacs-rt__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.smitacs-rt__grid label,
.smitacs-rt__inline-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #344944;
    font-weight: 650;
}

.smitacs-rt input,
.smitacs-rt select,
.smitacs-rt textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd8d4;
    border-radius: 8px;
    background: #fff;
    color: var(--rt-text);
    font: inherit;
}

.smitacs-rt textarea {
    min-height: 96px;
    resize: vertical;
}

.smitacs-rt__full {
    grid-column: 1 / -1;
}

.smitacs-rt__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: var(--rt-muted);
    font-size: 0.92rem;
}

.smitacs-rt .smitacs-rt__consent input {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.smitacs-rt__inline-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.smitacs-rt__inline-form label {
    flex: 1;
    min-width: 220px;
}

.smitacs-rt__notice {
    margin: 12px 0;
    color: var(--rt-muted);
    overflow-wrap: anywhere;
}

.smitacs-rt__notice[data-type="error"] {
    color: #b42318;
}

.smitacs-rt__notice[data-type="success"] {
    color: #067647;
}

.smitacs-rt__empty {
    padding: 22px;
    border: 1px dashed var(--rt-border);
    border-radius: 12px;
    background: #fbfdfc;
    text-align: center;
}

.smitacs-rt__empty p {
    margin-bottom: 0;
    color: var(--rt-muted);
}

.smitacs-rt__card {
    margin: 14px 0;
    padding: clamp(15px, 3vw, 22px);
    border: 1px solid var(--rt-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(20 91 80 / 4%);
}

.smitacs-rt__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.smitacs-rt__tag {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--rt-soft);
    color: var(--rt-primary);
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: capitalize;
}

.smitacs-rt__code {
    color: var(--rt-muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.smitacs-rt__card h4 {
    margin: 5px 0;
    color: #173a34;
    font-size: 1.12rem;
}

.smitacs-rt__address {
    margin: 6px 0 14px;
    color: var(--rt-muted);
    font-size: 0.92rem;
}

.smitacs-rt__amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--rt-border);
    border-bottom: 1px solid var(--rt-border);
}

.smitacs-rt__amount span {
    color: var(--rt-muted);
    font-size: 0.9rem;
}

.smitacs-rt__amount strong {
    color: var(--rt-primary);
    font-size: 1.12rem;
}

.smitacs-rt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.smitacs-rt__result {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--rt-border);
    border-radius: 10px;
    background: #f7fbf9;
    overflow-wrap: anywhere;
}

.smitacs-rt__result h4 {
    margin: 0 0 12px;
}

.smitacs-rt__result p {
    margin: 8px 0;
}

.smitacs-rt__qr {
    display: block;
    width: min(100%, 300px);
    height: auto;
    margin: 18px auto;
    padding: 10px;
    border: 1px solid var(--rt-border);
    border-radius: 10px;
    background: #fff;
}

.smitacs-rt__qr-label {
    display: block;
    margin: 14px 0;
    font-weight: 700;
}

.smitacs-rt__hint {
    color: var(--rt-muted);
    font-size: 0.88rem;
}

.smitacs-rt__result a {
    color: var(--rt-primary);
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .smitacs-rt__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .smitacs-rt__full {
        grid-column: auto;
    }

    .smitacs-rt__tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .smitacs-rt__tabs button {
        width: 100%;
    }

    .smitacs-rt__section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .smitacs-rt__section-heading button {
        width: 100%;
    }

    .smitacs-rt__inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .smitacs-rt__inline-form label {
        min-width: 0;
    }

    .smitacs-rt__actions {
        flex-direction: column;
    }

    .smitacs-rt__actions button {
        width: 100%;
    }

    .smitacs-rt__amount {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
