/* 前端样式 */

.qrp-free-reward-form {
    margin: 15px 0;
}

.qrp-free-reward-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.qrp-free-reward-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.qrp-free-service-labels {
    margin: 10px 0;
}

.qrp-free-service-label {
    margin: 5px 0;
    font-size: 14px;
}

.qrp-free-reward-type label {
    display: flex;
    align-items: center;
    margin: 6px 0;
    font-weight: normal;
}

.qrp-free-reward-amount label {
    display: block;
    margin-bottom: 6px;
    font-weight: normal;
}

.qrp-free-reward-amount input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.qrp-free-reward-expire label {
    display: block;
    margin-bottom: 6px;
    font-weight: normal;
}

.qrp-free-expire-presets label {
    display: inline-block;
    margin-right: 10px;
    font-weight: normal;
}

.qrp-free-reward-info-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.qrp-free-reward-info-box .font-bold {
    font-weight: 600;
}

.qrp-free-reward-amount {
    font-size: 18px;
    font-weight: 600;
}

.qrp-free-expire-time {
    margin-top: 6px;
    font-size: 14px;
}

.qrp-free-rewarded-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.qrp-free-rewarded-info .font-bold {
    margin-bottom: 6px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}