.uji-cobrand-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .2s ease;
}

.uji-cobrand-overlay.is-open { opacity: 1; }
.uji-cobrand-overlay[hidden]  { display: none !important; }

.uji-cobrand-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: translateY(8px);
    transition: transform .2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.uji-cobrand-overlay.is-open .uji-cobrand-modal { transform: translateY(0); }

.uji-cobrand-modal-inner { padding: 28px 28px 24px; }

.uji-cobrand-modal h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #2a2520;
    letter-spacing: .01em;
}

.uji-cobrand-sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: #6b6157;
    line-height: 1.55;
}

.uji-cobrand-form label {
    display: block;
    font-size: 14px;
    color: #2a2520;
    margin: 14px 0 6px;
}

.uji-cobrand-form .uji-cobrand-optional {
    font-weight: 400;
    color: #98897e;
    font-size: 13px;
}

.uji-cobrand-hint {
    margin: -2px 0 6px;
    font-size: 12.5px;
    color: #98897e;
    line-height: 1.45;
}

.uji-cobrand-form input[type="text"],
.uji-cobrand-form input[type="email"] {
    width: 100%;
    height: 46px;
    border: 1.5px solid #d8cfc7;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #2a2520;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.uji-cobrand-form input[type="text"]:focus,
.uji-cobrand-form input[type="email"]:focus {
    outline: none;
    border-color: #685c54;
    box-shadow: 0 0 0 3px rgba(104, 92, 84, .15);
}

.uji-cobrand-privacy {
    font-size: 11.5px;
    color: #98897e;
    line-height: 1.55;
    margin: 16px 0 0;
}

.uji-cobrand-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.uji-cobrand-btn-cancel,
.uji-cobrand-btn-submit {
    flex: 1;
    height: 46px;
    border-radius: 999px;
    border: 1.5px solid #2a2520;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}

.uji-cobrand-btn-cancel { background: #fff;     color: #2a2520; }
.uji-cobrand-btn-cancel:hover { background: #f4efe9; }

.uji-cobrand-btn-submit { background: #2a2520; color: #fff; }
.uji-cobrand-btn-submit:hover { background: #1a1612; }
.uji-cobrand-btn-submit:disabled {
    background: #b8aea4;
    border-color: #b8aea4;
    cursor: not-allowed;
}

.uji-cobrand-result {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.uji-cobrand-result.is-error   { background: #fbe9e6; color: #a8362c; border: 1px solid #f0c8c1; }
.uji-cobrand-result.is-success { background: #e8f3ed; color: #2c6f4b; border: 1px solid #c4e1d0; }

body.uji-cobrand-no-scroll { overflow: hidden !important; }

@media (max-width: 480px) {
    .uji-cobrand-modal-inner { padding: 22px 20px 20px; }
    .uji-cobrand-modal h3    { font-size: 20px; }
}
