:root {
    --tm-lp-charcoal: #1d1a16;
    --tm-lp-coffee: #3b3129;
    --tm-lp-cream: #f5efe4;
    --tm-lp-soft-cream: #fbf7ef;
    --tm-lp-gold: #b79b63;
    --tm-lp-muted: #766f66;
    --tm-lp-line: rgba(183, 155, 99, 0.32);
}

.tm-lp-root,
.tm-lp-root * {
    box-sizing: border-box;
}

.tm-lp-root {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999999;
    font-family: inherit;
    color: var(--tm-lp-charcoal);
}

.tm-lp-panel {
    width: min(388px, calc(100vw - 32px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 24px;
    border: 1px solid var(--tm-lp-line);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.78), rgba(245,239,228,0.96)),
        var(--tm-lp-cream);
    box-shadow: 0 28px 90px rgba(29, 26, 22, 0.22);
    padding: 30px 28px 24px;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    backdrop-filter: blur(8px);
}

.tm-lp-root.is-open .tm-lp-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.tm-lp-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 26, 22, 0.08);
    color: var(--tm-lp-charcoal);
    cursor: pointer;
    font-size: 26px;
    line-height: 30px;
    padding: 0;
}

.tm-lp-close:hover,
.tm-lp-close:focus {
    background: rgba(29, 26, 22, 0.14);
    outline: none;
}

.tm-lp-brand {
    color: var(--tm-lp-gold);
    font-size: 12px;
    letter-spacing: 0.18em;
    line-height: 1.2;
    margin: 0 38px 12px 0;
    text-transform: uppercase;
}

.tm-lp-panel h2 {
    color: var(--tm-lp-charcoal);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 36px 10px 0;
}

.tm-lp-subtitle {
    color: var(--tm-lp-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 20px;
}

.tm-lp-form {
    display: grid;
    gap: 10px;
}

.tm-lp-form label {
    color: var(--tm-lp-coffee);
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.tm-lp-optional {
    color: var(--tm-lp-muted);
    font-size: 12px;
    font-weight: 400;
}

.tm-lp-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(59, 49, 41, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--tm-lp-charcoal);
    font: inherit;
    padding: 12px 16px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tm-lp-form input::placeholder {
    color: rgba(118, 111, 102, 0.72);
}

.tm-lp-form input:focus {
    border-color: var(--tm-lp-gold);
    box-shadow: 0 0 0 4px rgba(183, 155, 99, 0.16);
    background: #fff;
    outline: none;
}

.tm-lp-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--tm-lp-charcoal);
    color: var(--tm-lp-soft-cream);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 8px;
    padding: 13px 20px;
    text-transform: uppercase;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tm-lp-submit:hover,
.tm-lp-submit:focus {
    background: var(--tm-lp-coffee);
    box-shadow: 0 12px 28px rgba(29, 26, 22, 0.16);
    outline: none;
    transform: translateY(-1px);
}

.tm-lp-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.tm-lp-note {
    color: var(--tm-lp-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 2px 0 0;
    text-align: center;
}

.tm-lp-message {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.tm-lp-message.is-error {
    color: #9b2f21;
}

.tm-lp-message.is-success {
    color: #38613a;
}

.tm-lp-success {
    border: 1px solid rgba(183, 155, 99, 0.38);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--tm-lp-coffee);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 16px;
    padding: 18px;
    text-align: center;
}

.tm-lp-honeypot {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 0;
}

@media (max-width: 640px) {
    .tm-lp-root {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .tm-lp-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 22px;
        padding: 26px 20px 20px;
    }

    .tm-lp-panel h2 {
        margin-right: 34px;
    }
}
