* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: transparent;
    color: #0f1d16;
}

.embed-widget {
    --primary: #0b4425;
    --accent: #2e7d32;
    --radius: 12px;
    --font-size: 16px;
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid rgba(12, 36, 24, 0.08);
    box-shadow: 0 18px 32px rgba(6, 32, 18, 0.12);
    font-size: var(--font-size);
}

.embed-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(12, 36, 24, 0.08);
}

.embed-widget__header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.embed-widget__title {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.embed-widget__title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='6' viewBox='0 0 120 6'><path d='M0 3 C10 0, 20 6, 30 3 C40 0, 50 6, 60 3 C70 0, 80 6, 90 3 C100 0, 110 6, 120 3' stroke='%230b4425' stroke-width='2' fill='none'/></svg>");
    background-repeat: repeat-x;
    background-size: 120px 6px;
    opacity: 0.7;
}

.embed-widget__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #c44a1a;
    box-shadow: 0 6px 12px rgba(196, 74, 26, 0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.embed-widget__tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f1f7f3;
    border: 1px solid rgba(12, 36, 24, 0.08);
}

.embed-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f4fbf7;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.embed-tab.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 18px rgba(11, 68, 37, 0.2);
}

.embed-widget__form {
    display: grid;
    gap: 10px;
}

.embed-widget__form label {
    font-weight: 700;
    color: #26362d;
}

.embed-widget__form input,
.embed-widget__form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    background: #f8fbf9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.embed-widget__form input:focus,
.embed-widget__form select:focus {
    outline: none;
    border-color: rgba(11, 68, 37, 0.45);
    box-shadow: 0 0 0 3px rgba(11, 68, 37, 0.12);
}

.embed-btn {
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.12)), var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(11, 68, 37, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.embed-btn:hover {
    filter: brightness(0.98);
}

.embed-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 12px rgba(11, 68, 37, 0.16);
}

.embed-alert {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff2e5;
    border: 1px solid rgba(180, 90, 0, 0.25);
    color: #8a4d00;
    font-size: 0.9rem;
}

.embed-widget__result {
    background: #f7fbf9;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.embed-widget__result .result-default,
.embed-widget__result .result-paybill {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.embed-widget--paybill .result-default {
    display: none;
}

.embed-widget--standard .result-paybill {
    display: none;
}

.embed-widget__result span {
    font-size: 0.85rem;
    color: #546459;
}

.embed-widget__result strong {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 800;
}

.embed-widget__footer {
    font-size: 0.85rem;
    color: rgba(93, 106, 98, 0.9);
    text-align: center;
}

.embed-widget__footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.embed-widget--dark {
    background: #0e2f1f;
    color: #eef7f1;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.embed-widget--dark .embed-widget__tabs .embed-tab {
    background: rgba(255, 255, 255, 0.1);
    color: #eef7f1;
    border-color: rgba(255, 255, 255, 0.2);
}

.embed-widget--dark .embed-widget__header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.embed-widget--dark .embed-widget__tabs {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.embed-widget--dark .embed-widget__form label {
    color: rgba(238, 247, 241, 0.9);
}

.embed-widget--dark .embed-widget__form input,
.embed-widget--dark .embed-widget__form select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #eef7f1;
}

.embed-widget--dark .embed-widget__result {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    border-left: none;
}

.embed-widget--dark .embed-widget__result span {
    color: rgba(255, 255, 255, 0.7);
}

.embed-widget--dark .embed-alert {
    background: rgba(255, 180, 80, 0.15);
    border-color: rgba(255, 180, 80, 0.35);
    color: #ffd9a6;
}

.is-hidden {
    display: none;
}
