:root {
    --kt-cd-accent: var(--system_primery_color, #7c3aed);
    --kt-cd-on-accent: #ffffff;
    --kt-cd-deep: #1E293B;
    --kt-cd-ink: #1E293B;
    --kt-cd-body: #475569;
    --kt-cd-faint: #94a3b8;
    --kt-cd-line: #e2e8f0;
    --kt-cd-bg: #f8fafc;
    --kt-cd-surface: #f1f5f9;
}

.kt-cdrawer-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10003;
    border: 0;
    cursor: pointer;
    background: var(--kt-cd-accent);
    color: var(--kt-cd-on-accent);
    border-radius: 14px 0 0 14px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: -6px 8px 26px rgba(15, 21, 36, 0.22);
    transition: padding-right 0.18s ease, background 0.18s ease;
}

.kt-cdrawer-tab:hover {
    padding-right: 16px;
    background: var(--kt-cd-deep);
    color: #ffffff;
}

.kt-cdrawer-tab:focus-visible {
    outline: 3px solid var(--kt-cd-deep);
    outline-offset: 3px;
}

.kt-cdrawer-tab__text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.kt-cdrawer-tab__icon {
    font-size: 16px;
    line-height: 1;
}

body.kt-cdrawer-open .kt-cdrawer-tab {
    opacity: 0;
    pointer-events: none;
}

.kt-cdrawer {
    position: fixed;
    inset: 0;
    z-index: 99995;
    visibility: hidden;
}

.kt-cdrawer[aria-hidden="false"] {
    visibility: visible;
}

.kt-cdrawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 26, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.kt-cdrawer[aria-hidden="false"] .kt-cdrawer__backdrop {
    opacity: 1;
}

.kt-cdrawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    width: min(420px, 100%);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: -18px 0 50px rgba(15, 21, 36, 0.24);
}

.kt-cdrawer[aria-hidden="false"] .kt-cdrawer__panel {
    transform: translateX(0);
}

.kt-cdrawer__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 6px;
    background: #ffffff;
}

.kt-cdrawer__eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--kt-cd-deep);
}

.kt-cdrawer__eyebrow-ico {
    font-size: 17px;
    line-height: 1;
    color: var(--kt-cd-accent);
}

.kt-cdrawer__close {
    flex: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--kt-cd-faint);
    font-size: 28px;
    line-height: 30px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.kt-cdrawer__close:hover {
    background: var(--kt-cd-surface);
    color: var(--kt-cd-deep);
}

.kt-cdrawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 24px 26px;
}

.kt-cdrawer__title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.025em;
    color: var(--kt-cd-deep);
    text-wrap: balance;
}

.kt-cdrawer__lead {
    margin: 0 0 24px;
    font-size: 15.5px;
    line-height: 1.62;
    color: var(--kt-cd-body);
}

.kt-cdrawer__field {
    display: block;
    margin-bottom: 14px;
}

.kt-cdrawer__field > span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--kt-cd-ink);
    margin-bottom: 5px;
}

.kt-cdrawer__field input,
.kt-cdrawer__field textarea {
    width: 100%;
    border: 1px solid var(--kt-cd-line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 15px;
    color: var(--kt-cd-ink);
    background: var(--kt-cd-bg);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kt-cdrawer__field textarea {
    resize: vertical;
    min-height: 96px;
}

.kt-cdrawer__field input:focus,
.kt-cdrawer__field textarea:focus {
    outline: none;
    border-color: var(--kt-cd-accent);
    box-shadow: 0 0 0 3px var(--system_primery_color_20, rgba(124, 58, 237, 0.2));
    background: #ffffff;
}

.kt-cdrawer__submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    background: var(--kt-cd-accent);
    color: var(--kt-cd-on-accent);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.kt-cdrawer__submit:hover {
    background: var(--kt-cd-deep);
    color: #ffffff;
}

.kt-cdrawer__submit:focus-visible {
    outline: 3px solid var(--kt-cd-deep);
    outline-offset: 2px;
}

body.kt-cdrawer-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .kt-cdrawer-tab {
        padding: 14px 8px;
        gap: 9px;
    }

    .kt-cdrawer-tab__text {
        font-size: 12.5px;
    }

    .kt-cdrawer__panel {
        width: 100%;
    }
}

@media print {
    .kt-cdrawer-tab,
    .kt-cdrawer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kt-cdrawer__panel,
    .kt-cdrawer__backdrop,
    .kt-cdrawer-tab {
        transition: none;
    }
}
