/* Definindo fontes fallback seguras */
.cdc-modal h2,
.cdc-modal p,
.cdc-button,
.cdc-form input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cdc-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cdc-modal-content {
    background-color: #fff;
    margin: 15px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

.cdc-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: none;
    border: none;
	border-radius: 10px;
    padding: 0;
    z-index: 2;
}

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

.cdc-modal-body {
    text-align: center;
    padding: 20px 0;
}

.cdc-modal h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 24px;
    line-height: 1.2;
    padding-right: 40px;
}

.cdc-modal p {
    margin: 0 0 15px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.cdc-coupon-container {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    position: relative;
}

.cdc-coupon-code {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: inline-block;
    min-width: 150px;
}

.cdc-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    width: auto;
    min-width: 150px;
    margin: 10px 0;
}

.cdc-button:hover {
    background-color: #45a049;
}

.cdc-button-close {
    background-color: #666;
}

.cdc-button-close:hover {
    background-color: #555;
}

.cdc-form {
    max-width: 400px;
    margin: 20px auto;
}

.cdc-form-group {
    margin-bottom: 15px;
}

.cdc-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.cdc-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.cdc-form-group input:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Estilos específicos para mobile */
@media screen and (max-width: 480px) {
    .cdc-modal-content {
        margin: 10px;
        padding: 15px;
        width: calc(100% - 20px);
    }

    .cdc-modal h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .cdc-modal p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .cdc-coupon-code {
        font-size: 20px;
        padding: 8px;
        min-width: 120px;
    }

    .cdc-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .cdc-form-group input {
        font-size: 14px;
        padding: 8px;
    }

    .cdc-modal-close {
        font-size: 20px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}

/* Ajustes para telas muito pequenas */
@media screen and (max-width: 320px) {
    .cdc-modal-content {
        padding: 10px;
    }

    .cdc-modal h2 {
        font-size: 18px;
    }

    .cdc-coupon-code {
        font-size: 18px;
        min-width: 100px;
    }
}

/* Ajuste para altura da tela */
@media screen and (max-height: 500px) {
    .cdc-modal-content {
        margin: 5px auto;
    }
}
