.tco-maria-packages {
    --tco-mp-burgundy: #800020;
    --tco-mp-ink: #17100a;
    --tco-mp-muted: #6f655b;
    --tco-mp-line: #eadfca;
    --tco-mp-gold: #c8a45d;
    --tco-mp-soft: #fbfaf7;
    width: 100%;
    margin: 0 auto;
    color: var(--tco-mp-ink);
    font-family: "Roboto", Arial, sans-serif;
}

.tco-mp-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 34px 36px;
    border-radius: 8px 8px 0 0;
    background: radial-gradient(circle at 92% 10%, rgba(200,164,93,.20), transparent 34%), #1d1713;
    color: #fff;
    border-bottom: 2px solid var(--tco-mp-gold);
}

.tco-mp-logo {
    width: 96px;
    height: auto;
    display: block;
}

.tco-mp-hero span,
.tco-mp-toolbar span,
.tco-mp-field span {
    display: block;
    color: var(--tco-mp-gold);
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tco-mp-hero h2 {
    margin: 0;
    color: #fff !important;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.tco-mp-hero p,
.tco-mp-toolbar p,
.tco-mp-actions p {
    margin: 10px 0 0;
    line-height: 1.65;
}

.tco-mp-hero p {
    color: rgba(255,255,255,.72);
}

.tco-mp-status {
    margin: 18px 0;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid rgba(31,104,71,.28);
    background: #f1f8f4;
    color: #1f6847;
    font-weight: 800;
}

.tco-mp-status.is-error {
    border-color: rgba(128,0,32,.28);
    background: #fff4f6;
    color: var(--tco-mp-burgundy);
}

.tco-mp-form {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--tco-mp-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    backdrop-filter: blur(14px);
}

.tco-mp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--tco-mp-line);
    border-radius: 8px;
    background: var(--tco-mp-soft);
}

.tco-mp-toolbar strong {
    display: block;
    margin-top: 4px;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 22px;
}

.tco-mp-toolbar p,
.tco-mp-actions p {
    max-width: 500px;
    color: var(--tco-mp-muted);
    font-size: 14px;
}

.tco-mp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tco-mp-package {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--tco-mp-line);
    border-radius: 8px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 10px 28px rgba(23,16,10,.06);
}

.tco-mp-package.is-active {
    border-color: rgba(128,0,32,.34);
    box-shadow: inset 0 0 0 1px rgba(128,0,32,.08), 0 12px 34px rgba(23,16,10,.08);
}

.tco-mp-package-head,
.tco-mp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tco-mp-package-head em {
    color: var(--tco-mp-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.tco-mp-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.tco-mp-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tco-mp-toggle span {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #d8d0c3;
    position: relative;
}

.tco-mp-toggle span::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
}

.tco-mp-toggle input:checked + span {
    background: var(--tco-mp-burgundy);
}

.tco-mp-toggle input:checked + span::before {
    transform: translateX(14px);
}

.tco-mp-toggle strong {
    font-weight: 900;
}

.tco-mp-field {
    display: grid;
    gap: 6px;
}

.tco-mp-field input,
.tco-mp-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--tco-mp-line);
    border-radius: 6px;
    background: #fff;
    color: var(--tco-mp-ink);
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
}

.tco-mp-field textarea {
    resize: vertical;
    line-height: 1.55;
}

.tco-mp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tco-mp-primary {
    min-height: 46px;
    min-width: 230px;
    border: 0;
    border-radius: 999px;
    background: var(--tco-mp-burgundy);
    color: #fff;
    cursor: pointer;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: .02em;
    padding: 12px 24px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tco-mp-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.tco-mp-primary:disabled {
    opacity: .66;
    cursor: wait;
}

@media (max-width: 900px) {
    .tco-mp-grid,
    .tco-mp-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tco-mp-hero,
    .tco-mp-form,
    .tco-mp-package,
    .tco-mp-toolbar {
        padding: 20px;
    }

    .tco-mp-hero,
    .tco-mp-toolbar,
    .tco-mp-package-head,
    .tco-mp-actions {
        display: grid;
    }

    .tco-mp-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tco-mp-logo {
        margin: 0 auto;
        width: 86px;
    }

    .tco-mp-primary {
        width: 100%;
    }
}
