/**
 * Price Modal Styles
 * 
 * Extends the existing .snd-modal styles for the custom price modal
 */

/* One-line amount row */
.snd-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 6px;
    flex-wrap: wrap;
}

.snd-amount-label {
    font-weight: 700;
    font-size: 16px;
    color: #e5e5e5;
}

/* Price input styling */
.snd-price-input-group {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.snd-currency-symbol {
    position: absolute;
    left: 12px;
    font-weight: bold;
    color: #666;
    z-index: 1;
}

#snd-custom-price {
    width: 180px;
    padding: 10px 10px 10px 25px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #333;
    color: #fff;
}

#snd-custom-price:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

/* Price display styling */
.snd-price-suffix {
    color: #bbb;
    font-size: 14px;
}

/* Modal description */
.snd-modal-description {
    margin: 20px 0;
    color: #666;
    line-height: 1.5;
}

/* Error message styling */
.snd-price-error {
    color: #ffb4b7;
    background: rgba(214, 54, 56, 0.08); /* subtle */
    border: 1px solid rgba(214, 54, 56, 0.25);
    border-radius: 4px;
    padding: 6px 10px;
    margin: 8px 0 10px;
    font-size: 13px;
    transition: opacity 150ms ease, transform 150ms ease;
}

.snd-price-message {
    color: #9dd79d;
    background: rgba(0, 128, 0, 0.08);
    border: 1px solid rgba(0, 128, 0, 0.25);
    border-radius: 4px;
    padding: 6px 10px;
    margin: 6px 0 12px;
    font-size: 13px;
}

/* Button styling for price modal */
.snd-price-action {
    margin-left: 10px;
}

.snd-price-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .snd-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .snd-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .snd-modal-footer .button {
        width: 100%;
        margin: 0;
    }
}

/* Form group styling */
.snd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* MailPoet opt-in */
.snd-mailpoet-optin {
    margin-top: 18px; /* bring it down a little more */
}
.snd-mailpoet-optin .snd-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#snd-mailpoet-email {
    margin-left: 8px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #222;
    color: #fff;
}