/* ogp_settings_page */
.ogp-container {
  position: relative;
  margin: 2rem auto 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
}
.ogp-settings-section {
  margin-bottom: 3em;
}
.ogp-container h1 {
  font-size: 24px;
  color: #333;
  font-weight: 700;
  margin-bottom: 0px;
}
.ogp-container h3 {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.ogp-settings-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
}
.ogp-input-box {
  flex-shrink: 1;
  height: 3rem;
}
.ogp-settings-footer {
  border-top: 1px solid #eff0f5;
  margin: 3ch;
  padding-top: 2ch;
}
.ogp-save-button-container-right {
  float: right;
  margin-bottom: 2rem;
}

/* ogp_feature_card Start */
.ogp_feature_card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.ogp_feature_card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ogp_feature_card h3 {
  color: #495057;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.ogp_feature_card p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
/* ogp_feature_card End */

/* ogp_apikey_validation_page Start */
#ogp_apiKey_message p {
  margin-bottom: 0;
}
.ogp-button {
  background: #4e73df;
  color: #fff;
  border: 0;
  border-radius: 3px;
}
.ogp_api_info {
  padding: 1rem;
  border: 2px solid #4e73df;
  border-radius: 3px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-top: 20px;
}
/* ogp_display_delivery_details_after_billing_address Start */
.ogp-delivery-container {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}
.ogp-delivery-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  text-align: center;
}
.ogp-delivery {
  display: flex;
  flex-direction: column;
}
.ogp-delivery-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
  background: #ffffff;
  border-radius: 5px;
}
.table-responsive {
  display: block;
  width: 100%;
  overflow: auto;
}
.ogp-settings-section table {
  width: 100%;
  background: #ffffff;
  font-size: 1rem;
  color: #858796;
  text-align: left;
}
.table td,
.table th {
  padding: .75rem;
  vertical-align: top;
  text-align: center;
  border-top: 1px solid #e3e6f0;
  font-size: 0.9rem;
  color: #333;
}
.table th {
  background-color: #f2f2f2;
}
.table-bordered td,
.table-bordered th {
  border: 1px solid #e3e6f0;
}
.left {
  position: sticky;
  background-color: #ffffff;
}
.col1 {
  left: 0px;
}
.bg-green {
  background-color: #a8e1a8;
  color: #000000;
}
.bg-red {
  background-color: #f78383;
  color: #000000;
}
.ogp-progress {
  display: flex;
  flex-direction: row;
  height: 1.5rem;
  margin-top: 12px;
  overflow: hidden;
  line-height: 0;
  font-size: .75rem;
  background-color: #eaecf4;
  border-radius: .35rem;
}
.ogp-progress-bar {
  transition: width .6s ease;
}
.ogp-delivery-container {
  width: 470px;
}
.ogp-delivery-info > div {
  font-size: 16px !important;
}
table.table.table-bordered th {
  font-size: 14px;
}
.ogp-progress-bar p {
  color: #ffffff !important;
  font-weight: 700;
  margin: 0 5px;
  line-height: 1.5rem;
}
/* ogp-number-search Start */
#ogp-search-button {
  display: inline-block;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 29px;
  padding: 1ch 2em;
  cursor: pointer;
}
/* ogp-blocking-page */
.ogp-pagination {
  margin-top: 1rem;
  display: flex;
  gap: 8px;
  justify-content: end;
}
.ogp-pagination a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 3px;
}
.ogp_get_order_ip_toggle,
.ogp_get_order_number_toggle {
  display: flex;
  justify-content: start;
}

/* Updated toggle geometry to match reference design */
.ogp_get_order_ip_toggle .minitoggle,
.ogp_get_order_number_toggle .minitoggle {
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Updated knob size and positioning to match reference */
.ogp_get_order_ip_toggle .toggle-handle,
.ogp_get_order_number_toggle .toggle-handle {
  width: 20px;
  height: 20px;
  top: 2px;
  left: 2px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  position: absolute;
  transition: left 0.3s ease;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ogp_get_order_ip_toggle .minitoggle.active,
.ogp_get_order_number_toggle .minitoggle.active {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

/* Fixed knob positioning for ON state to stay within bounds */
.ogp_get_order_ip_toggle .toggle-handle.active,
.ogp_get_order_number_toggle .toggle-handle.active {
  left: 28px;
}

/* Updated text positioning and styling to match reference */
.ogp_get_order_ip_toggle .minitoggle::before,
.ogp_get_order_number_toggle .minitoggle::before {
  content: "OFF";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  z-index: 1;
  letter-spacing: 0.5px;
}

/* Fixed ON text positioning with proper 1px spacing from edges */
.ogp_get_order_ip_toggle .minitoggle.active::before,
.ogp_get_order_number_toggle .minitoggle.active::before {
  content: "ON";
  color: #fff;
  left: 25px; /* Position text 25px from left (1px from right edge of 50px track) */
  transform: translateY(-50%); /* Only center vertically, not horizontally */
}

.ogp_packages {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.ogp_card {
  max-width: 25%;
  margin-bottom: 20px;
  padding: 16px;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.ogp-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
.ogp-modal-content {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.ogp-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.ogp-close:hover {
  color: #dc3545;
}

.ogp-modal-body {
  padding: 0 20px 20px 20px;
}

.ogp-check-report-btn {
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 16px;
}

.ogp-check-report-btn:hover {
  background: #135e96;
}

.ogp-check-report-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.ogp-data-rows {
  margin-bottom: 20px;
}

.ogp-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ogp-label {
  font-size: 12px;
  color: #64748b;
}

.ogp-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

.ogp-ratio {
  font-weight: 600;
}

.ogp-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  font-size: 11px;
  color: #64748b;
}

.ogp-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ogp-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ogp-status-comment {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.ogp-status-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 8px 0;
}

.ogp-comments {
  margin-top: 8px;
}

.ogp-comments p {
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
  margin: 4px 0;
}

.ogp-modal:focus {
  outline: none;
}

/* Responsive design */
@media (max-width: 480px) {
  .ogp-order-report-modal-content {
    width: 95%;
    margin: 20px;
  }

  .ogp-legend {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}


/* Light polish for tabs */
#ogp_settings .nav-tab-wrapper .nav-tab { display:inline-flex; align-items:center; gap:8px; }
#ogp_settings .nav-tab-wrapper .nav-tab.nav-tab-active { font-weight:600; background:#f2f3f5; border-radius:6px; }
#ogp_settings .ogp-table-header-row th { white-space:nowrap; }

/* OGP: Dark card style for WooCommerce error notice (no icon edits) */
.woocommerce .woocommerce-notices-wrapper ul.woocommerce-error,
.woocommerce-page .woocommerce-notices-wrapper ul.woocommerce-error,
.woocommerce ul.woocommerce-error {
  background: #16283C !important;          /* ডার্ক নেভি */
  border: 2px solid #2F4358 !important;     /* আউটলাইন */
  color: #F1F5F9 !important;                /* টেক্সট */
  border-radius: 14px;
  padding: 16px 18px;                       /* আইকন আলাদা হলে চাইলে left padding বাড়াতে পারেন */
  list-style: none;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow:
    0 16px 32px rgba(2, 6, 23, 0.28),
    0 4px 10px rgba(2, 6, 23, 0.18);
}

/* ভিতরের <li> */
.woocommerce .woocommerce-notices-wrapper ul.woocommerce-error li{
  margin: 0;
  color: inherit !important;
}

/* ডিফল্ট আইকন/বুলেট হাইড */
.woocommerce-error::before { display: none; }

