.co-trigger,
.co-modal,
.co-panel {
    --co-text-500: #1e293b;
    --co-text-300: #64748b;
    --co-stroke: #e2e8f0;
    --co-green-500: #004a29;
    --co-red-500: #ef4444;
}

.zp-trigger-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 8px;
}

.co-trigger {
    gap: 8px;
}

.co-trigger-icon {
    display: flex;
    color: var(--co-green-500);
}

.co-trigger-icon svg {
    width: 20px;
    height: 20px;
}

.co-modal [hidden] {
    display: none !important;
}

.co-step {
    display: none;
}

.co-modal[data-step="form"] [data-co-step="form"],
.co-modal[data-step="otp"] [data-co-step="otp"],
.co-modal[data-step="success"] [data-co-step="success"] {
    display: flex;
}

.co-body {
    gap: 16px;
}

.co-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.co-field-group {
    display: flex;
    flex-direction: column;
}

.co-field {
    position: relative;
}

.co-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--co-text-500);
    background: #fff;
    border: 1px solid var(--co-stroke);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.co-input:focus {
    border-color: var(--co-green-500);
    box-shadow: 0 0 0 3px rgba(0, 74, 41, 0.12);
}

.co-textarea {
    min-height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
    resize: vertical;
}

.co-label {
    position: absolute;
    top: 11px;
    inset-inline-start: 13px;
    font-size: 16px;
    line-height: 24px;
    color: var(--co-text-500);
    pointer-events: none;
    transition: top 0.15s, font-size 0.15s, color 0.15s;
}

.co-field--area .co-label {
    top: 9px;
}

.co-input:focus + .co-label,
.co-input:not(:placeholder-shown) + .co-label {
    top: -10px;
    padding: 0 4px;
    font-size: 12px;
    color: var(--co-text-300);
    background: #fff;
}

.co-required {
    margin-inline-start: 2px;
    font-size: 12px;
    color: var(--co-red-500);
}

.co-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 0;
    font-size: 14px;
    line-height: 28px;
    color: var(--co-text-300);
}

.co-note-icon {
    display: flex;
    flex: none;
    padding-top: 4px;
}

.co-note-icon svg {
    width: 20px;
    height: 20px;
}

.co-link {
    align-self: stretch;
    font-size: 16px;
    line-height: normal;
    color: var(--co-green-500);
    text-align: start;
    text-decoration: underline;
    text-underline-position: from-font;
}

.co-submit {
    gap: 8px;
}

.co-spinner {
    display: none;
}

.co-step[data-loading="true"] .co-spinner {
    display: inline-flex;
    animation: co-spin 1s linear infinite;
}

.co-step[data-loading="true"] .zp-btn {
    opacity: 0.7;
    cursor: wait;
}

@keyframes co-spin {
    to {
        transform: rotate(360deg);
    }
}

.co-otp-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.co-otp-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--co-text-500);
}

.co-otp-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--co-text-300);
}

.co-otp-mobile {
    unicode-bidi: isolate;
    font-weight: 600;
    color: var(--co-text-500);
}

.co-text-btn {
    padding: 0;
    font: inherit;
    color: var(--co-green-500);
    text-decoration: underline;
    text-underline-position: from-font;
    cursor: pointer;
    background: none;
    border: 0;
}

.co-otp-input {
    font-size: 20px;
    letter-spacing: 0.5em;
    text-align: center;
}

.co-otp-timer {
    margin: 0;
    font-size: 14px;
    color: var(--co-text-300);
    text-align: center;
}

.co-otp-seconds {
    display: inline-block;
    min-width: 2.5em;
    font-weight: 600;
    color: var(--co-text-500);
    text-align: center;
}

.co-resend {
    align-self: center;
    font-size: 14px;
}

.co-success {
    align-items: center;
    text-align: center;
}

.co-success-icon {
    display: flex;
    color: var(--co-green-500);
}

.co-success-icon svg {
    width: 48px;
    height: 48px;
}

.co-success-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--co-text-500);
}

.co-success-code {
    margin: 0;
    font-size: 14px;
    color: var(--co-text-300);
}

.co-code {
    display: inline-block;
    padding: 2px 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--co-text-500);
    background: #f1f5f9;
    border-radius: 6px;
    user-select: all;
}

.co-success-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--co-text-300);
}

.co-success .co-link {
    text-align: center;
}

.co-success .zp-btn {
    align-self: stretch;
}

@media (min-width: 1024px) {
    .co-title {
        font-weight: 600;
        line-height: normal;
    }

    .co-body {
        gap: 24px;
    }

    .co-success {
        gap: 16px;
    }
}

.co-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.co-panel-empty {
    margin: 0;
    padding: 24px 16px;
    font-size: 14px;
    color: var(--co-text-300);
    text-align: center;
    border: 1px dashed var(--co-stroke);
    border-radius: 16px;
}

.co-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--co-stroke);
    border-radius: 16px;
}

.co-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.co-card-code {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--co-text-500);
}

.co-badge {
    flex: none;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 600;
    color: #8a6d1f;
    background: #fef3c7;
    border-radius: 999px;
}

.co-badge--reviewing {
    color: #1d4ed8;
    background: #dbeafe;
}

.co-badge--approved {
    color: #00552e;
    background: #dcfce7;
}

.co-badge--rejected {
    color: #b42318;
    background: #fee2e2;
}

.co-card-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.co-card-row {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.co-card-row--block {
    flex-direction: column;
    gap: 0;
}

.co-card-row dt {
    flex: none;
    color: var(--co-text-300);
}

.co-card-row dd {
    margin: 0;
    color: var(--co-text-500);
    word-break: break-word;
}

.co-card-row a {
    color: var(--co-green-500);
    text-decoration: underline;
    text-underline-position: from-font;
}

.co-card-status {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--co-text-500);
}

.co-card-note {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.8;
    background: #f8fafc;
    border-inline-start: 3px solid var(--co-green-500);
    border-radius: 8px;
}

.co-card-note-label {
    font-weight: 600;
    color: var(--co-text-500);
}

.co-card-note p {
    margin: 0;
    color: var(--co-text-500);
}
