@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

#confirm-redeem-reward-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 355px;
    height: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    background: #fff;
    border-radius: 20px;
    z-index: 10002;
    display: none;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    font-family: Roboto, sans-serif;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.22);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 40px 20px 20px;
}

.confirm-redeem-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
    max-width: 315px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

.confirm-redeem-state {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
}

.confirm-redeem-state__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c5c9ce transparent;
}

.confirm-redeem-state__body::-webkit-scrollbar {
    width: 4px;
}

.confirm-redeem-state__body::-webkit-scrollbar-track {
    background: transparent;
}

.confirm-redeem-state__body::-webkit-scrollbar-thumb {
    background: #c5c9ce;
    border-radius: 4px;
}

.confirm-redeem-state--success .confirm-redeem-state__body {
    gap: 14px;
}

.confirm-redeem-state__body--staff {
    justify-content: flex-start;
    gap: 20px;
    padding-top: 4px;
}

.confirm-redeem-state__footer {
    flex-shrink: 0;
    margin-top: 12px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirm-redeem-state--staff[hidden],
.confirm-redeem-state--success[hidden],
.confirm-redeem-state--confirm.is-hidden {
    display: none !important;
}

.confirm-redeem-close {
    position: absolute;
    top: 6px;
    right: 14px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.confirm-redeem-close img {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.confirm-redeem-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border-radius: 8px;
    background: #ebf5ff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.confirm-redeem-header__logo-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.confirm-redeem-header__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.confirm-redeem-header__content {
    min-width: 0;
    flex: 1;
}

.confirm-redeem-header__badge {
    margin: 0 0 6px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(36, 147, 234, 0.12);
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2493ea;
}

.confirm-redeem-header__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #000;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.confirm-redeem-header__title-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.confirm-redeem-details {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
}

.confirm-redeem-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.confirm-redeem-detail-row__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ebf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-redeem-detail-row__icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.confirm-redeem-detail-row__label {
    flex: 1;
    min-width: 0;
}

.confirm-redeem-detail-row__value {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.confirm-redeem-detail-row__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #283f50;
}

.confirm-redeem-detail-row__title--value {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #283f50;
}

.confirm-redeem-detail-row__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #8e8e93;
}

.confirm-redeem-detail-row__status {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #34c759;
}

.confirm-redeem-detail-row__status--solo {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #34c759;
}

.confirm-redeem-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #c5e3fa;
    border-radius: 8px;
    background: #ebf5ff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.confirm-redeem-alert__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
    margin-top: 1px;
}

.confirm-redeem-alert__text {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #6b7280;
}

.confirm-redeem-staff__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

.confirm-redeem-staff__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ebf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 8px;
}

.confirm-redeem-staff__icon img {
    display: block;
    width: 28px;
    height: 28px;
}

.confirm-redeem-staff__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #283f50;
}

.confirm-redeem-staff__subtitle {
    margin: 0;
    max-width: 300px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #8e8e93;
}

.confirm-redeem-staff__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

.confirm-redeem-state--staff .confirm-redeem-alert {
    margin-top: 0;
}

.confirm-redeem-staff__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #283f50;
}

.confirm-redeem-staff__input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #283f50;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.confirm-redeem-staff__input::placeholder {
    color: #b0b0b5;
}

.confirm-redeem-staff__input:focus {
    outline: none;
    border-color: #2493ea;
    box-shadow: 0 0 0 3px rgba(36, 147, 234, 0.12);
}

.confirm-redeem-success__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-shrink: 0;
}

.confirm-redeem-success__check {
    display: block;
    width: 70px;
    height: 70px;
}

.confirm-redeem-success__badge {
    display: block;
    width: 199px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.confirm-redeem-success__reward {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: #283f50;
}

.confirm-redeem-success__reward img {
    display: block;
}

.confirm-redeem-success__message {
    margin: 0;
    max-width: 300px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #8e8e93;
}

.confirm-redeem-success__message strong {
    color: #283f50;
    font-weight: 600;
}

.confirm-redeem-success__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.confirm-redeem-success__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.confirm-redeem-success__label {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #8e8e93;
}

.confirm-redeem-success__value {
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #283f50;
    text-align: right;
}

.confirm-redeem-cycle-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(40, 63, 80, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
}

.confirm-redeem-cycle-card__icon {
    flex-shrink: 0;
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.confirm-redeem-cycle-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.confirm-redeem-cycle-card__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
    color: #000;
}

.confirm-redeem-cycle-card__title span {
    color: #2493ea;
}

.confirm-redeem-cycle-card__text {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #8e8e93;
}

.confirm-redeem-cycle-card__btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #2493ea;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    white-space: nowrap;
}

.confirm-redeem-cycle-card__btn:hover {
    background: #1f84d4;
}

.confirm-redeem-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 100%;
}

.confirm-redeem-btn {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.confirm-redeem-btn--primary {
    border: none;
    background: #2493ea;
    color: #fff;
}

.confirm-redeem-btn--primary:hover:not(:disabled) {
    background: #1f84d4;
}

.confirm-redeem-btn--primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.confirm-redeem-btn--secondary {
    border: 1.25px solid #dadada;
    background: #fff;
    color: #283f50;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.confirm-redeem-btn--secondary:hover {
    border-color: #c4c4c4;
    background: #fafafa;
}

.confirm-redeem-footer {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    color: #8e8e93;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 420px) {
    #confirm-redeem-reward-modal {
        width: calc(100vw - 24px);
        height: auto;
        max-height: calc(100vh - 24px);
        padding: 36px 16px 16px;
    }

    .confirm-redeem-close {
        top: 4px;
        right: 12px;
        width: 28px;
        height: 28px;
    }

    .confirm-redeem-inner {
        max-width: 100%;
    }

    .confirm-redeem-header__logo-wrap {
        width: 48px;
        height: 48px;
    }

    .confirm-redeem-header__title {
        font-size: 16px;
        line-height: 22px;
    }

    .confirm-redeem-staff__title {
        font-size: 18px;
        line-height: 26px;
    }

    .confirm-redeem-success__reward {
        font-size: 20px;
        line-height: 26px;
    }

    .confirm-redeem-cycle-card__main {
        flex-wrap: wrap;
    }

    .confirm-redeem-cycle-card__btn {
        width: 100%;
        height: 36px;
    }
}
