/* === Custom Radio Option - AdPurpose === */
.custom-radio-option, .custom-radio-option-image {
    cursor: pointer;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc; /* Default border */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transition for interactions */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-weight:600;
}

    .custom-radio-option-image img {
        width: 85px; /* Fixed width for images */
        height: auto; /* Maintain aspect ratio */
        /*margin-right: 10px;*/ /* Space between image and text */
    }


/* Specific styles for selected option */
.custom-radio-selected {
    border-color: #c8e6c9; /* Highlight border for selected */
    background-color: #c8e6c9; /* Light background for selected */
    color: #222;
}

/* === Ad Type Selection - AD CARDS === */
/* layout */
.adtype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

/* card */
.adtype-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 14px 60px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

    .adtype-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,.07);
        border-color: #cfd8dc;
    }

    .adtype-card.custom-radio-selected {
        border-color: #4CAF50;
        box-shadow: 0 0 0 3px rgba(76,175,80,.2);
    }

/* headline / price / expl */
.adtype-headline {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 6px;
}

.adtype-price {
    margin-bottom: 10px;
}

.adtype-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #c8e6c9;
    background: #e8f5e9;
    white-space: nowrap;
}

.adtype-expl {
    color: #4b5563;
    line-height: 1.45;
    font-size: .8rem;
}

/* actions */
.adtype-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
}

/*.btn-primary, .btn-outline {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .92rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: #4CAF50;
    color: #fff;
    transition: filter .15s ease, background .15s ease, border-color .15s ease;
}*/

.btn-outline {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.btn-primary:hover {
    filter: brightness(.95);
}

.btn-outline:hover {
    border-color: #9ca3af;
}

.adtype-thumb {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 50px;
    height: auto;
    opacity: .7;
    pointer-events: none;
}

.adtype-modal {
    display: none;
}

    .adtype-modal.is-open {
        display: block;
    }

.adtype-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
}

.adtype-modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: min(92vw, 720px);
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
    z-index:5;
}

.adtype-modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.adtype-modal-body {
    padding: 12px 16px;
    max-width: 250px;
    margin: auto;
}

    .adtype-modal-body img {
        width: 100%;
        height: auto;
        display: block;
        max-width:400px;
    }

.adtype-modal-close {
    position: absolute;
    right: 8px;
    top: 6px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.adtype-pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.adtype-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

    .adtype-pill.success {
        border-color: #bbf7d0;
        background: #ecfdf5;
    }

    .adtype-pill.danger {
        border-color: #fecaca;
        background: #fef2f2;
    }

.adtype-badge.alt {
    margin-left: 6px;
}

    .adtype-badge.alt.muted {
        opacity: .6;
    }


/* === Easy Number Widget AdCharges === */
.easy-number-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.easy-number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.easy-number-button {
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    user-select: none;
    text-align: center;
    flex: 1;
    max-width: 60px;
    border-radius: 4px;
}

    .easy-number-button:hover {
        background-color: #e0e0e0;
    }

.easyNumberDisplay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.3em;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 5px;
    background-color: #f8f8f8;
    box-sizing: border-box;
    font-weight: bold;
}

    .easyNumberDisplay .number {
        margin-right: 5px;
    }

    .easyNumberDisplay .unit {
        font-size: 0.8em;
        color: #666;
    }

.easy-number-display {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}
.warning {
    background-color: #f2dede;
}

.informational {
    background-color: #f6f6df;
}

.positive {
    background-color: #dff0d8;
}
/* Responsive Design */
@media (max-width: 600px) {
    .easy-number-input-container {
        width: 100%;
    }

    .easyNumberDisplay {
        width: 100%;
        font-size: 1.3em;
        padding: 15px;
        margin: 0 10px;
    }

    .easy-number-button {
        padding: 10px;
        font-size: 26px;
        flex: 1;
        max-width: none;
        min-width: 45px;
    }
}

.easy-number-widget .number-input {
    width: 120px !important;
    text-align: center !important;
    background-color: unset !important;
    font-size: large !important;
    font-weight: 600 !important;
    border: unset !important;
    font-family: 'MontserratMedium500' !important;
}

#CreditCardPaymentForm input,
#CreditCardPaymentForm select,
#CreditCardPaymentForm textarea {
    font-size: 16px !important;
}

/* Responsive adjustments (optional, based on your layout requirements) */
@media (max-width: 600px) {
    .custom-radio-option, .custom-radio-option-image {
        flex-direction: column;
    }

        .custom-radio-option-image img {
            margin-right: 0;
            margin-bottom: 10px; /* Space between image and text in vertical layout */
        }

}
