#subscription-fields-wrapper {
    margin: 1em 0;
}

/* Container for subscription fields */
#subscription-fields {
    margin-bottom: 1em;
    padding: 0px 12px;
}

/* Row styling for fields */
.subscription-field-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-end;
    gap: 10px;
    width: 80%;
}

/* Style for form field containers */
.form-field {
    flex: 1;
}

/* Label styling */
.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Input and select box styling */
.form-field input[type="number"],
.form-field select {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 0.5em;
    box-sizing: border-box;
}

/* Description styling */
.form-field .description {
    font-size: 0.875em;
    color: #666;
}

/* Button styling */
.button {
    margin-top: 1em;
}

/* Hide delete button initially for the first row */
.delete-field {
    display: none;
    height: 30px;
    line-height: 28px;
    padding: 0 12px 2px;
}

.subscription-container {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    gap: 20px; /* Adds space between the two sections */
}

.subscription-details {
    width: 80%;
    padding: 20px; /* Adds padding inside the details box */
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.subscription-settings {
    width: 20%;
    padding: 20px; /* Adds padding inside the settings box */
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: fit-content !important;
}

h2 {
    margin-top: 0;
    margin-bottom: 15px; /* Adds margin below the headings */
}

.form-table th {
    text-align: left;
    padding: 10px 0; /* Adds padding to the table header cells */
    border-bottom: 1px solid #ddd;
}

.form-table td {
    padding: 10px 0; /* Adds padding to the table data cells */
    border-bottom: 1px solid #ddd;
}

input[type="date"], .subscription-settings select {
    width: 100%;
    padding: 8px; /* Adds padding inside form fields */
    box-sizing: border-box; /* Ensures padding is included in the width */
}
.update_subs_btn{
    margin-top: 20px !important;
    float: right;
    padding: 5px 15px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}
input[type="date"][readonly] {
    background-color: #e0e0e0; /* Light grey background */
    color: #6c757d;            /* Slightly darker grey text */
    border: 1px solid #ccc;     /* Optional: Border to match the style */
}
.subscription-field-row p.form-field {
    padding: 0px !important;
    padding-left: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 28%;
}
.subscription-field-row p.form-field label {
    margin: 0px !important;
}

button#add-more-fields {
    margin-left: 10px;
}
.subscription-form-container {
    max-width: 45%;
    /* margin: auto; */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subscription-form-container .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    flex: 1;
    margin-right: 10px;
}

.subscription-form-container .form-control {
    width: 100%;
    /* padding: 10px; */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.subscription-form-container .btn {
    padding: 10px 15px;
    background-color: transparent;
    color: black;
    /* border: none; */
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #00000047;
}

.subscription-form-container h3 {
    margin-top: 20px;
}
select#delivery_period, select#subscription_period_interval{
    max-width: 100%;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #007bff !important;
    height: 10px !important;
}
.select2-container .select2-search--inline .select2-search__field{
    margin-top: 0 !important;
}
.subscription-form-container span.select2.select2-container.select2-container--default{
    width: 100% !important;
}
span.select2-selection.select2-selection--multiple{
    height: 10px !important;
}

/* Subscription Settings CSS */
.settings-section-subscription {
    margin-top: 20px;
}
.settings-section-subscription h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
}
.settings-section-subscription .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    margin: 10px 10px;
    margin-left: 0px;
    padding: 10px;
    background-color: #fff;
}
.settings-section-subscription .row .form-group {
    margin-right: 6px;
}
.settings-section-subscription .row .col-md-6 {
    flex: 0 0 48%;
}
.settings-section-subscription .row .col-md-4 {
    flex: 0 0 30%;
}
.settings-section-subscription .row .col-md-2 {
    flex: 0 0 18%;
}
.settings-section-subscription .row .form-group label {
    margin-bottom: 10px;
}
.settings-section-subscription .row .form-group input[type="text"], .settings-section-subscription .row .form-group select {
    width: 90%;
    padding: 0px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.settings-section-subscription .row .form-group select {
    height: 40px;
}
.settings-section-subscription .row .form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.settings-section-subscription .row .form-group input[type="checkbox"] {
    margin-right: 5px;
}
.settings-section-subscription .row .form-group .form-control {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.plugin-dashboard {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
  }

  .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center the icon and text */
  }
  
  .feature-icon {
    font-size: 30px; /* Adjust size */
    color: #0073aa; /* Icon color */
    margin-bottom: 15px; /* Space between icon and text */
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .license-section {
    padding: 20px;
    background-color: #e8f5fd;
    border-radius: 10px;
    border: 1px solid #b0e0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .license-section h2 {
    margin-bottom: 15px;
    color: #0073aa;
  }
  
  .license-input {
    display: flex;
    align-items: center;
  }
  
  .license-input input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    width: 100%;
    transition: border-color 0.3s;
  }
  
  .license-input input:focus {
    border-color: #0073aa;
    outline: none;
  }
  
  .license-input button {
    margin-left: 10px; /* Add gap between buttons */
  }
  
  .license-input button:first-child {
    margin-left: 0; /* No margin for the first button */
  }

  .notices-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .notices-section h2 {
    margin-bottom: 15px;
    color: #0073aa;
  }
  
  .notice-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
  }
  
  .notice-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #0073aa;
  }
  
  .notice-card p {
    margin: 0;
  }
  
  .notice-card:hover {
    background-color: #e1f5fe; /* Light blue background on hover */
  }
  
  .warning {
    background-color: #fff3cd;
    color: #856404;
  }
  
  .error {
    background-color: #f8d7da;
    color: #721c24;
  }
  
  .warning .notice-icon {
    color: #856404; /* Dark yellow for warning */
  }
  
  .error .notice-icon {
    color: #721c24; /* Dark red for error */
  }

  .btn {
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  .btn:hover {
    background-color: #005177;
    transform: translateY(-1px);
  }
  
  .btn-danger {
    background-color: #d9534f;
  }
  
  .btn-danger:hover {
    background-color: #c9302c;
    transform: translateY(-1px);
  }
  
  .woocommerce_options_panel .subscription-field-row p.form-field {
    padding: 0px 0px !important;
  }

  .woocommerce_options_panel .subscription-field-row input[type=text], .woocommerce_options_panel .subscription-field-row input[type=number], .woocommerce_options_panel .subscription-field-row select {
    width: 90%;
  }

  /* bulk subscription css */
  .form-group.bulk_subscription_options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 50%;
  }
  .astrik_icon{
    color: red;
    margin-left: 2px;
  }

  .bulk_subscription .subscription-field-row p.form-field label{
    font-weight: 400 !important;
  }

  .bulk_subscription .subscription-field-row p.form-field {
    padding: 0px !important;
  }

  /* Reports CSS */
  .revenue-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
}

.revenue-card {
    width: 23%;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.revenue-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
    margin-top: 0px;
}

.revenue-card p {
    font-size: 1.5em;
    font-weight: bold;
    color: #00aaff;
    margin: 0;
}

.timeframe-buttons {
  display: flex;
  justify-content: center;
  gap: 15px; /* Space between buttons */
  margin: 20px 0; /* Space above and below button group */
}

.timeframe-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #00abff;
  background-color: #ffffff; /* Primary blue color */
  border: 1px solid #00abff; /* Blue border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background-color 0.3s, transform 0.2s;
}

.timeframe-button:hover {
  background-color: #00abff; /* Darker blue on hover */
  transform: scale(1.05); /* Slight zoom effect */
  color: #ffffff; /* White text on hover */
}

.timeframe-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Focus outline */
}

.timeframe-button:active {
  transform: scale(0.95); /* Slight press effect */
  background-color: #00abff; /* Darker blue on press */
}
button.timeframe-button.active{
  background-color: #00abff;
  color: #ffffff;
}

.discount-type-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.discount-type-options {
  display: flex;
  justify-content: flex-start; 
  gap: 10px; /* Optional: Adds space between items */
}

.discount-type-options label {
  display: flex;
  align-items: center;
  gap: 5px; /* Adds space between the radio button and the text */
}

.subscription-plan-fields {
  display: flex; /* Aligns the fields in one line */
  gap: 20px; /* Adds space between each field */
  align-items: center; /* Vertically aligns fields with different heights */
  flex-wrap: wrap; /* Ensures fields wrap to the next line if there's not enough space */
}

.subscription-plan-fields .form-field {
  flex: 1; /* Distributes the fields equally in the row */
  min-width: 200px; /* Ensures a minimum width for each field */
}

.subscription-plan-fields label {
  display: block; /* Keeps the label above the input field */
  font-weight: bold;
  margin-bottom: 5px; /* Adds spacing between label and input */
}

.subscription-plan-fields input {
  width: 100%; /* Ensures the input field spans the full width of its container */
  padding: 5px;
  box-sizing: border-box; /* Includes padding and border in the element's width */
}

.subscription-plan-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  align-items: flex-end;
  gap: 10px;
}

.subscription-plan-row p {
  margin: 0;
  flex: 1; /* Make all fields take equal space */
}

.subscription-plan-row input, 
.subscription-plan-row select {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
}

.add-more-plans {
  margin-top: 15px;
}

.delete-plan-row {
  background-color: #e53935;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  height: 30px;
  line-height: 28px;
  padding: 0 12px 2px;
}

input#enable_subscription_120 {
  margin-top: -6px;
}

.license-section {
  padding: 20px;
  background-color: #e8f5fd;
  border-radius: 10px;
  border: 1px solid #b0e0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.license-section h2 {
  margin-bottom: 15px;
  color: #0073aa;
}

.license-input {
  display: flex;
  align-items: center;
}

.license-input input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  width: 100%;
  transition: border-color 0.3s;
}

.license-input input:focus {
  border-color: #0073aa;
  outline: none;
}

.license-input button {
  margin-left: 10px;
  /* Add gap between buttons */
}

.license-input button:first-child {
  margin-left: 0;
  /* No margin for the first button */
}

.btn {
  padding: 12px 18px;
  border: none;
  border-radius: 5px;
  background-color: #0073aa;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: #005177;
  transform: translateY(-1px);
}

.remove-subscription-license {
  background-color: #d9534f;
}

.remove-subscription-license:hover {
  background-color: #c9302c;
  transform: translateY(-1px);
}

.remove-subscription-license {

  padding: 12px 18px;
  border: none;
  border-radius: 5px;
  background-color: #d9534f;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;

}

.activate-license-btn {

  padding: 12px 18px;
  border: none;
  border-radius: 5px;
  background-color: #0073aa;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;

}


.activate-license-btn:hover {
  background-color: green;
  transform: translateY(-1px);
}

.notices-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notices-section h2 {
  margin-bottom: 15px;
  color: #0073aa;
}

.notice-card {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.notice-icon {
  font-size: 24px;
  margin-right: 10px;
  color: #0073aa;
}

.notice-card p {
  margin: 0;
}

.notice-card:hover {
  background-color: #e1f5fe;
  /* Light blue background on hover */
}

.warning {
  background-color: #fff3cd;
  color: #856404;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

.warning .notice-icon {
  color: #856404;
  /* Dark yellow for warning */
}

.error .notice-icon {
  color: #721c24;
  /* Dark red for error */
}

button.delete-plan-row.button {
  margin-top: 27px;
}


button.delete-field.button {
  margin-top: 13px;
}


.error-highlight {
  border: 2px solid red !important;
  background-color: #ffe6e6;
}

input#_subs_price_1 {
  margin-left: 8px;
}

/* css for setting pagedefault one time purchase      */
input#one_time_title {
  width: 70%;
}
/* Responsive design: Adjust button layout for smaller screens */
@media (max-width: 768px) {
  .timeframe-buttons {
      flex-direction: column;
      gap: 10px;
  }

  .timeframe-button {
      width: 100%; /* Full width for smaller screens */
      text-align: center;
  }
}

/* Improve visibility of Select2 dropdowns */
.select2-container .select2-selection--multiple {
  min-height: 40px; /* Slightly reduce the height for compactness */
  border-radius: 5px; /* Smooth corners for a modern look */
  border: 1px solid #ced4da; /* Matches Bootstrap's form field borders */
  padding: 5px;
  display: flex;
  flex-wrap: wrap; /* Wrap selected items within the container */
  overflow-y: auto; /* Allow scrolling if there are too many items */
  gap: 5px; /* Add spacing between selected items */
}

/* Adjust the alignment and spacing for rendered text */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  line-height: 20px; /* Align text vertically and reduce line height */
  padding: 0; /* Remove extra padding */
}

/* Adjust dropdown options for better visibility */
.select2-container--default .select2-results__options {
  max-height: 200px; /* Sets a fixed height for the dropdown */
  overflow-y: auto; /* Adds scrolling for large lists */
  font-size: 14px; /* Slightly smaller font size for compactness */
  line-height: 20px; /* Align dropdown options vertically */
  padding: 5px; /* Add padding for dropdown options */
}

/* Styling for selected items (choice pills) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: #fff;
  background-color: #007bff; /* Matches Bootstrap's primary button color */
  border: none;
  border-radius: 3px; /* Adds rounded corners */
  padding: 2px 8px; /* Compact padding */
  margin: 2px 4px; /* Space between choice pills */
  font-size: 13px; /* Slightly smaller font size */
  line-height: 18px; /* Ensure proper alignment */
  overflow: hidden; /* Prevents text overflow */
  text-overflow: ellipsis; /* Adds ellipsis for long text */
  white-space: nowrap; /* Keeps text on a single line */
}

/* Fix z-index for Select2 dropdown within modals */
.select2-container {
  z-index: 1055; /* Slightly higher than Bootstrap's modal (1050) */
}

.select2-container .select2-dropdown {
  z-index: 1056; /* Higher than the container to ensure visibility */
}

/* Adjust container height for better scrolling behavior */
.select2-container--default .select2-selection--multiple {
  max-height: 120px; /* Set a maximum height */
  overflow-y: auto; /* Add a vertical scrollbar if needed */
}

/* Automatically adjust height based on content */
.select2-container--default .select2-selection--multiple {
  height: auto;
}

/* Styling for the retry interval section */
#retry-interval-value {
  max-width: 100px; /* Limit width of the number input */
}

#retry-interval-unit {
  max-width: 150px; /* Limit width of the dropdown */
}

.d-flex.align-items-center {
  gap: 10px; /* Add spacing between the input and dropdown */
}

