/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./components/CdkRedeem.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
.cdk-redeem-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f7;
    padding: 20px;
}

.redeem-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.redeem-container h2 {
    margin: 0 0 16px;
    font-size: 22px;
    color: #1d1d1f;
}

.warning-tip {
    background: #fff3cd;
    color: #856404;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.redeem-container input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.redeem-container input:focus {
    outline: none;
    border-color: #0071e3;
}

.btn-search {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 12px;
}

.btn-search:hover {
    background: #0056b3;
}

.btn-redeem {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.btn-redeem:hover {
    background: #0056b3;
}

.btn-redeem:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 380px;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

.modal-content h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #1d1d1f;
}

.search-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.search-buttons button {
    flex: 1 1;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.search-buttons button:hover {
    background: #0056b3;
}

.search-buttons button:disabled {
    background: #f5f5f5;
    color: #999;
}

.modal-content>input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.modal-content>button {
    width: 100%;
    padding: 12px;
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.modal-content>button:disabled {
    background: #f5f5f5;
    color: #999;
}

.result-box {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.result-box p {
    margin: 6px 0;
    font-size: 14px;
}

.btn-use {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
}

.btn-use:hover {
    background: #0056b3;
}

.btn-back {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #999;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.btn-back:hover {
    background: #f0f0f0;
}
