/* ==============================
   Table Styles
   ============================== */
.wosr-table td {
    vertical-align: top;
    padding: 0;
    width: auto !important; /* Ensure flexible width */
}
.wosr-table .select2,
.wosr-table select,
.wosr-table input,
.wosr-table textarea {
    width: 90% !important; /* Keep inputs nicely sized */
}
.wosr-table .wosr-extra-th {
    width: 10px !important;
}
.wosr-table .wosr-extra-td {
    width: 10px !important; 
    font-weight: bold; 
    padding-top: 12px;
}
#save_rule {
    margin-top: 10px;
}

/* ==============================
   Select2 & Choices
   ============================== */
.select2-selection__choice {
    padding: 5px 10px !important;
}

/* ==============================
   Toggle Switch Styles
   ============================== */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
.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: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #4CAF50;
}
input:checked + .slider:before {
    transform: translateX(14px);
}

/* ==============================
   Plugin Settings Tab Elements
   ============================== */
.wosr-order-trash-container,
.wosr-order-notes-container,
.wosr-order-address-container,
.wosr-order-date-container,
.wosr-order-bulk-actions-container,
.wosr-order-customer-name-container {
    display: flex;
    align-items: baseline;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.wosr-order-trash-container h3,
.wosr-order-notes-container h3,
.wosr-order-address-container h3,
.wosr-order-date-container h3,
.wosr-order-customer-name-container h3 {
    margin: 0;
    min-width: 300px; /* Reserve space for titles */
}
.wosr-order-trash-container .select2,
.wosr-order-notes-container .select2,
.wosr-order-address-container .select2,
.wosr-order-date-container .select2,
.wosr-order-bulk-actions-container .select2,
.wosr-order-customer-name-container .select2 {
    width: 600px !important;
    min-width: 300px !important;
}

/* ==============================
   Buttons & Notices
   ============================== */
.wosr-save-btn {
    margin-top: 15px !important;
}
.wosr-notice-success {
    background: #dff0d8;
    border-left: 4px solid #4CAF50;
    padding: 10px;
    margin: 10px 0 15px;
    display: flex;
    align-items: center;
}
.wosr-notice-success span {
    font-weight: bold;
    margin-left: 5px;
}
.upgrade-button {
    text-align:center; 
    margin-top:40px;
}
/* ==============================
   Address Fields
   ============================== */
.wosr-order-address-container label {
    display: inline-block;
    width: 200px;
    font-weight: bold;
}
.wosr-field-group {
    display: flex;
    width: 100%;
}
.wosr-field-group label {
    font-size: 16px; 
    font-weight: 600; 
    color: #1d2327;
}
.delete-rule-form {
    display: inline;
}

/* ==============================
   Tabs & Headings
   ============================== */
.nav-tab-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px !important;
}
.nav-tab-wrapper .nav-tab {
    border: 1px solid;
}
.header-h3 {
	font-size: 22px;
}
.subheader-h3 {
	font-size: 20px;
    margin-top: 40px;
}
.wosr-user-table-description {
    margin: -10px 0 15px;
}
.individual-user-h3 {
    font-size: 16px; 
    font-weight: 600; 
    color: #1d2327;
}

/* ==============================
   Username Dummy Overlay (Upgrade Prompt)
   ============================== */
.wosr-username-dummy-wrapper {
    position: relative;
    margin-top: 20px;
}
.wosr-username-dummy-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backdrop-filter: blur(1px);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.wosr-username-dummy-overlay div {
    font-size: 32px;
}
.wosr-username-dummy-overlay h4 {
    margin: 20px;
    font-size: 18px;
    color: #333;
}
.wosr-username-dummy-upgrade-btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
}
.wosr-username-dummy-table {
    pointer-events: none; /* Prevent interaction */
}

/* ==============================
   Upgrade Modal
   ============================== */
#wosr-upgrade-modal {
    display: none;
}
#wosr-upgrade-modal .wosr-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
#wosr-upgrade-modal .wosr-modal-content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
    text-align: center;
}
.wosr-modal-content div {
    font-size: 32px; 
    color: #e53e3e;
}
.wosr-modal-content .wosr-upgrade-message {
    margin: 15px 0; 
    font-size: 16px;
}
.wosr-modal-content .button-primary {
    margin-left: 10px;
}
.wosr-upgrade-box {
    padding: 10px 15px; 
    background: #fff3cd; 
    border-left: 4px solid #ffba00;
}
.wosr-upgrade-box p {
    font-size: 16px;
}

/* ==============================
   User Profile fields
   ============================== */
.user-profile-fields select {
    width: 350px;
}
.user-profile-fields .special {
    display: flex;
}
.user-profile-fields .special td:nth-child(2) {
    font-weight: bold; 
    padding-top: 25px;
}
.user-profile-fields .special textarea {
    width: 350px;
}
.user-profile-fields .disabled-checkbox {
    border-color: rgba(0, 0, 0, .25);
}

/* ===========================
 	Upgrade Tab Feature Block 
   =========================== */
.wosr-feature-block {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
}

/* Header row: feature title + button inline */
.wosr-feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* wrap on smaller screens */
    gap: 10px;
}

.wosr-feature-header h3 {
    margin: 0;
}

/* Description */
.wosr-feature-desc {
    margin-top: 10px;
}

/* Image container */
.wosr-feature-images {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Each image block */
.wosr-feature-image {
    flex: 1;
    min-width: 300px;
}

.wosr-feature-image img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}