h1, h2, h3, h4, h5, h6, p{
    font-family: "Inter", sans-serif;
}
.cs-heading{
    display:flex;
    justify-content:space-between;
}
.btn-warning{
    background-color: #fd7e14 !important;
}
.btn-danger{
    background-color: #dc3545 !important;
}
.btn-success{
    background-color: #198754 !important;
}
.mb-0{
    margin-bottom: 0px !important;
}
.mb-1{
    margin-bottom: 10px !important;
}
.sm-zee-1{
    display: block;
    margin-bottom: 10px;
}

/* Grid wrapper for the rate fields */
.rate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rate-item p{
    margin-bottom: 0px !important;
}

input#delivered_data_file {
    background: #fff;
    border: 1px solid rgb(118, 118, 118);
    border-radius: 4px;
}

.zee-custom-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.zee-custom-container > div {
    border: 1px solid #0000001a;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zee-custom-container a{
    font-size: 14px;
    text-decoration: none;
}

.zee-heading {
    margin: 0px;
    font-size: 17px;
    font-weight: bold;
}

.zee-description {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.zee-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.zee-btn-add {
    background-color: #e3e3e3;
    border: 1px solid #0000001a;
    padding: 0px 10px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}

.zee-btn-add:hover {
    background-color: #ddd;
}

.time_zone_grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.time_zone_grid_item{
    margin-bottom: 0px !important;
}
.ads_group_inside_table,
.ads_group_inside_table tr{
    border: 1px solid #0000001a;
}
.ads_group_inside_table td:not(:last-child) {
    border-right: 1px solid #0000001a;
}
div#dynamic_timezone_inputs label {
    display: block;
}
.timezone-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.timezone-fields select, .timezone-fields input {
    flex: 1;
    max-width: 33.3%;
}

/* Modal CSS */
.modal-overlay {
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .47);
    display: none;
    position: fixed;
}
.modal-body {
    width: 50%;
    height: 650px;
    background-color: #fff;
    margin: auto;
    position: fixed;
    top: 0%;
    bottom: 0%;
    left: 0%;
    right: 0%;
    padding: 2rem;
    display: none;
    z-index: 99999;
    border-radius: 10px;
    box-shadow: 0px 0px 20px #000;
}
.modal-body a img {
    width: 400px;
    display: block;
    margin: 30px auto;
}
.modal-body h2 {
    text-align: center;
    margin-top: 0px;
}
span#close__popup {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}
@media screen and (max-width:1280px) {
    .modal-body {
        height: 400px;
    }
    .modal-body h2 {
      font-size: 30px;
    }
}
@media screen and (max-width:767px) {
    .modal-body {
      width: 70%;
    }
    .modal-body h2 {
      font-size: 25px;
    }
    html body .kb-wrapper .kb-customise-page .kb-change-view-button,
    body .kb-wrapper .kb-customise-page .kb-change-design-button,
    html body .kb-wrapper .gta-custom-nav-panel,
    html body .kb-wrapper .kb-general-mobile-styles .kb-customize-mobile-nav.kb-mobile-only{
    	z-index: 8 !important;
    }
}
@media screen and (max-width:575px) {
    .modal-body {
        width: 90%;
        padding: 1.5rem;
    }
}
/* Ends Modal CSS */

table#campaign-rows-table tbody {
    display: block;
    overflow-y: scroll;
    height: 500px;
}

table#campaign-rows-table thead,
table#campaign-rows-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

table#campaign-rows-table thead {
    width: 100%;
}

table#campaign-rows-table tbody::-webkit-scrollbar {
    width: 8px;
}

table#campaign-rows-table tbody::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

table#campaign-rows-table tbody::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

table#campaign-rows-table tbody::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 4px;
}


.monitoring-table-wrapper,
.first-placement-wrapper,
.check-material-by-time-wrapper,
.total-cost-table-wrapper,
.rate-calculation-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

table.monitoring-table,
table.first-placement,
table.check-material-by-time,
table.total-cost-table,
table.rate-calculation-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

table.monitoring-table th,
table.first-placement th,
table.check-material-by-time th,
table.total-cost-table th,
table.rate-calculation-table th, 
table.monitoring-table td,
table.first-placement td,
table.check-material-by-time td,
table.total-cost-table td,
table.rate-calculation-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

table.monitoring-table th,
table.first-placement th,
table.check-material-by-time th,
table.total-cost-table th,
table.rate-calculation-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    text-align: center; 
}

table.monitoring-table tr:nth-child(even),
table.first-placement tr:nth-child(even),
table.check-material-by-time tr:nth-child(even),
table.total-cost-table tr:nth-child(even),
table.rate-calculation-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.monitoring-table tr:nth-child(odd),
table.first-placement tr:nth-child(odd),
table.check-material-by-time tr:nth-child(odd),
table.total-cost-table tr:nth-child(odd),
table.rate-calculation-table tr:nth-child(odd) {
    background-color: #fff;
}

table.monitoring-table td,
table.first-placement td,
table.check-material-by-time td,
table.total-cost-table td,
table.rate-calculation-table td {
    color: #555;
}

table.monitoring-table thead,
table.first-placement thead,
table.check-material-by-time thead,
table.total-cost-table thead,
table.rate-calculation-table thead {
    position: sticky;
    top: 0;
    background-color: #f4f4f4;
    z-index: 1;
}
table.check-material-by-time td.material__display small {
    color: red;
}
table.check-material-by-time td.bgg-danger{
    background-color: #ff757561;
}
table.first-placement .bgg-success{
    background-color: #b7e1cd57;
}
/* .first-placement-wrapper {
    width: 50%;
} */
@media screen and (max-width:992px) {
    .first-placement-wrapper {
        width: 100%;
    }
}
.text-center{
    text-align: center;
}

td.bgg-dangerd {
    background-color: #ff757561;
}
span.see-more-btn {
    font-size: 10px;
    color: black;
    display: block;
    cursor: pointer;
}

p.current-subscription {
    background: #00800085;
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    color: #fff;
    margin: 5px 0;
}

table.shop_table.shop_table_responsive.campaign_table tr th,
table.shop_table.shop_table_responsive.campaign_table tr td{
    padding: 8px;
    font-size: 14px;
	font-weight:normal;
}


nav.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
}

.table_buttons_custom a.button.wp-element-button {
    font-size: 12px;
}

.rate-grid .rate-item label {
    font-size: 14px;
    font-weight: normal;
}



/* Orders of Nav Items */
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--subscriptions {
    order: 1;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--edit-account {
    order: 2;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--edit-address {
    order: 3;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--payment-methods {
    order: 4;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--orders,
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--instructions {
    order: 5;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--timezone-groups {
    order: 6;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--rate-role-by-day {
    order: 7;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--ads-booked {
    order: 8;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--view-campaigns {
    order: 9;
}
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout {
    order: 10;
}
/* Hide the increment and decrement buttons */
.rate-grid input[type="number"]::-webkit-inner-spin-button, 
.rate-grid input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce_account_subscriptions{
	display: none;
}



/* Dark mode enable */ 
.modal-body h2 {
    color: #000 !important;
    padding-top: 0;
}
ul.products.subscription_products h2.woocommerce-loop-product__title,
ul.products.subscription_products span.price,
.modal-body tr th,
.modal-body tr td,
a.zee-btn-add,
span#close__popup{
    color: #000 !important;
}
table.shop_table.shop_table_responsive.campaign_table {
    margin-top: 220px;
}
table.shop_table.shop_table_responsive.campaign_table.old_campaign {
    margin-top: 30px;
}
ul.products.subscription_products span.price ins span.amount {
    color: #fff !important;
}
.cs-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.cs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cs-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.cs-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.cs-switch input:checked + .cs-slider {
    background-color: #2196F3;
}
.cs-switch input:checked + .cs-slider:before {
    transform: translateX(22px);
}



#scrollToTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: none;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}
#scrollToTop:hover {
  background: #555;
}

.custom-drop-area {
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #1f1f1f;
    color: #ccc;
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 10px;
}

.custom-drop-area:hover {
    background-color: #2a2a2a;
    border-color: #fff;
}

.custom-drop-area.dragover {
    background-color: #333;
    border-color: #fff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #fff;
}

.uploaded-file-name {
    color: #00e676;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.woocommerce-MyAccount-navigation-link--dashboardd a {
    background-color: #fc1919;
    color: white !important;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    text-align: center;
}

.woocommerce-MyAccount-navigation-link--dashboardd a:hover {
    background-color: #7e0c0c;
}
li.woocommerce-MyAccount-navigation-link--dashboard_disabled a {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

li.woocommerce-MyAccount-navigation-link--dashboard_disabled a::after {
    content: "Add at least one campaign to see stats in dashboard";
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 5px 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    display: none;
}

li.woocommerce-MyAccount-navigation-link--dashboard_disabled:hover a::after {
    display: block;
}
/* Style for active My Dashboard button */
li.woocommerce-MyAccount-navigation-link--dashboardd a {
    background-color: #ff9900;
    color: #fff !important;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Hover effect */
li.woocommerce-MyAccount-navigation-link--dashboardd a:hover {
    background-color: #e68200;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* Style for DISABLED button */
li.woocommerce-MyAccount-navigation-link--dashboard_disabled a {
    background-color: #ccc;
    color: #666 !important;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 10px;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
    text-align: center;
}


/* Upgrade Alert Box Styles */
.upgrade-alert-box {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #d63638; /* Red accent */
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-wrap: wrap; /* Wraps gracefully on mobile */
    gap: 15px;
}

.upgrade-content h4 {
    margin: 0 0 5px 0;
    color: #d63638 !important;
    font-size: 16px;
    font-weight: 700;
}

.upgrade-content p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.upgrade-btn {
    background-color: #d63638;
    color: #fff !important; /* Force white text */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.upgrade-btn:hover {
    background-color: #333;
    color: #fff !important;
}

/* Mobile adjustment */
@media (max-width: 600px) {
    .upgrade-btn { width: 100%; }
}