.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.drcf7-shortcode {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left-width: 4px;
    border-left-color:#3498db;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin: 5px 0 2px;
    padding: 1px 12px;
}
.notice-success {
    border-left-color: #46b450;
}
.notice-error {
    border-left-color: #dc3232;
}
.recipient-row {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}
.recipient-row input {
    flex: 1;
    max-width: 300px;
}
.recipient-row input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid #fff0;
}
.drag-handle {
    cursor: grab;
    font-size: 18px;
    color: #787c82;
    padding: 0 5px;
    user-select: none;
    transition: color 0.2s;
}
.drag-handle:hover {
    color: #2271b1;
}
.drag-handle:active {
    cursor: grabbing;
}
.recipient-row.ui-sortable-helper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #2271b1;
    background: #f0f6fc;
}
.recipient-row.ui-sortable-placeholder {
    visibility: visible !important;
    background: #f0f0f1;
    border: 2px dashed #c3c4c7;
}
#dynamic-recipients-container {
    margin: 20px 0;
}
#add-recipient {
    margin: 10px 0 20px;
}
.submit {
    margin-top: 20px;
}
.recipient-limit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 0.5);
}
.recipient-limit-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    position: relative;
    text-align: center;
}
.recipient-limit-modal h2 {
    margin-top: 0;
    color: #23282d;
}
.recipient-limit-modal-buttons {
    margin-top: 20px;
}
.recipient-limit-modal-buttons .button {
    margin: 0 5px;
}
.button-limited {
    opacity: 0.7;
    cursor: not-allowed;
}
.button-upgrade {
    background: #ff6b6b !important;
    border-color: #ff5252 !important;
    color: white !important;
}
.button-upgrade:hover {
    background: #ff5252 !important;
    border-color: #ff3d3d !important;
}
.upgrade {
    border-radius: 4px;
    bottom: 50px;
    background: #fff;
    padding: 10px;
    text-align: left;
    width: auto;
    display: inline-block;
}
.upgrade:hover {
    box-shadow: 0 0 15px rgb(0 0 0 / 0.1);
}
ul.upgrade li::before {
    content: "✔";
    margin: 0 5px 0 0;
    padding: 0;
}
ul.upgrade li {
    text-indent: -16px;
    margin: 2px 0 5px 16px;
}
