:root {
  --wtc-primary: #2271b1;
  --wtc-primary-hover: #135e96;
  --wtc-secondary: #f0f0f1;
  --wtc-secondary-hover: #e5e5e5;
  --wtc-success: #46b450;
  --wtc-error: #dc3232;
  --wtc-warning: #ffb900;
  --wtc-info: #00a0d2;
  --wtc-passive: #ff0000;
  --wtc-active: #008000;
  --wtc-white: #fff;
  --wtc-light-gray: #f8f9fa;
  --wtc-gray-100: #f0f0f1;
  --wtc-gray-200: #e5e5e5;
  --wtc-gray-300: #ddd;
  --wtc-gray-400: #ccd0d4;
  --wtc-gray-500: #a7aaad;
  --wtc-gray-600: #8c8f94;
  --wtc-gray-700: #646970;
  --wtc-gray-800: #3c434a;
  --wtc-gray-900: #2c3338;
  --wtc-black: #1d2327;
  --wtc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --wtc-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --wtc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wtc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wtc-spacing-1: 4px;
  --wtc-spacing-2: 8px;
  --wtc-spacing-3: 12px;
  --wtc-spacing-4: 16px;
  --wtc-spacing-5: 20px;
  --wtc-spacing-6: 24px;
  --wtc-spacing-8: 32px;
  --wtc-spacing-10: 40px;
  --wtc-radius-sm: 2px;
  --wtc-radius: 4px;
  --wtc-radius-md: 6px;
  --wtc-radius-lg: 8px;
  --wtc-radius-xl: 12px;
  --wtc-radius-full: 9999px;
  --wtc-transition: all 0.2s ease-in-out;
  --wtc-transition-slow: all 0.3s ease-in-out;
}
.wtc-admin-page {
  margin: 20px 0;
}
.wtc-admin-page .wrap {
  margin: 0;
}
.wtc-admin-page h1 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 var(--wtc-spacing-6);
  padding: 0;
  color: var(--wtc-gray-900);
}
.wtc-card {
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-400);
  border-radius: var(--wtc-radius);
  box-shadow: var(--wtc-shadow-sm);
  margin-bottom: var(--wtc-spacing-6);
  padding: var(--wtc-spacing-6);
  transition: var(--wtc-transition);
}
.wtc-card:hover {
  box-shadow: var(--wtc-shadow);
}
.wtc-card-header {
  border-bottom: 1px solid var(--wtc-gray-300);
  margin-bottom: var(--wtc-spacing-5);
  padding-bottom: var(--wtc-spacing-4);
}
.wtc-card-header h2,
.wtc-card-header h3 {
  color: var(--wtc-gray-900);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.wtc-card-body {
  padding: var(--wtc-spacing-2) 0;
}
.wtc-card-footer {
  margin-top: var(--wtc-spacing-5);
}
.wtc-nav-tab-wrapper {
  border-bottom: 1px solid var(--wtc-gray-400);
  position: relative;
}
.wtc-nav-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-top-left-radius: var(--wtc-radius);
  border-top-right-radius: var(--wtc-radius);
  color: var(--wtc-gray-700);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: -1px;
  padding: var(--wtc-spacing-3) var(--wtc-spacing-5);
  text-decoration: none;
  transition: var(--wtc-transition);
}
.wtc-nav-tab:hover {
  background-color: var(--wtc-gray-100);
  color: var(--wtc-gray-900);
}
.wtc-nav-tab-active {
  background-color: var(--wtc-white);
  border-color: var(--wtc-gray-400);
  border-bottom-color: var(--wtc-white);
  color: var(--wtc-primary);
}
.wtc-nav-tab-active:hover {
  background-color: var(--wtc-white);
  color: var(--wtc-primary-hover);
}
.wtc-form-table {
  border-collapse: collapse;
  margin-top: var(--wtc-spacing-4);
  width: 100%;
}
.wtc-form-table th {
  font-weight: 500;
  padding: var(--wtc-spacing-4) var(--wtc-spacing-4) var(--wtc-spacing-4) 0;
  text-align: left;
  vertical-align: top;
  width: 200px;
}
.wtc-form-table td {
  padding: var(--wtc-spacing-4);
  vertical-align: top;
}
.wtc-form-table .description {
  color: var(--wtc-gray-700);
  font-size: 13px;
  font-style: italic;
  margin-top: var(--wtc-spacing-1);
  margin-bottom: var(--wtc-spacing-3);
}
.wtc-button {
  background: var(--wtc-secondary);
  border: 1px solid var(--wtc-gray-400);
  border-radius: var(--wtc-radius);
  color: var(--wtc-gray-900);
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  height: auto;
  line-height: 2.15384615;
  min-height: 30px;
  padding: 0 var(--wtc-spacing-3);
  text-decoration: none;
  transition: var(--wtc-transition);
  white-space: nowrap;
}
.wtc-button:hover {
  background: var(--wtc-secondary-hover);
  border-color: var(--wtc-gray-500);
}
.wtc-button-primary {
  background: var(--wtc-primary);
  border-color: var(--wtc-primary);
  color: var(--wtc-white);
}
.wtc-button-primary:hover {
  background: var(--wtc-primary-hover);
  border-color: var(--wtc-primary-hover);
  color: var(--wtc-white);
}
.wtc-button-success {
  background: var(--wtc-success);
  border-color: var(--wtc-success);
  color: var(--wtc-white);
}
.wtc-button-success:hover {
  background: #399a41;
  border-color: #399a41;
}
.wtc-toggle-wrapper-settings {
  position: relative;
  display: inline-block;
}
.wtc-toggle-input {
  display: none !important;
}
.wtc-toggle-label {
  background-color: var(--wtc-gray-400);
  border-radius: var(--wtc-radius-full);
  cursor: pointer;
  display: block;
  height: 24px;
  position: relative;
  transition: var(--wtc-transition);
  width: 48px;
}
.wtc-toggle-label:before {
  background-color: var(--wtc-white);
  border-radius: 50%;
  content: '';
  height: 20px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: var(--wtc-transition);
  width: 20px;
}
.wtc-toggle-input:checked+.wtc-toggle-label {
  background-color: var(--wtc-primary);
}
.wtc-toggle-input:checked+.wtc-toggle-label:before {
  transform: translateX(24px);
}
.wtc-toggle-wrapper {
  display: flex;
  align-items: center;
}
.wtc-toggle-wrapper .toggle-label {
  margin-left: 10px;
  font-weight: 500;
}
.contract-templates-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--wtc-spacing-6);
}
.template-variables {
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-400);
  border-radius: var(--wtc-radius);
  box-shadow: var(--wtc-shadow-sm);
  margin-bottom: var(--wtc-spacing-6);
  padding: var(--wtc-spacing-5);
}
.variable-category {
  margin-bottom: var(--wtc-spacing-6);
}
.variable-category:last-child {
  margin-bottom: 0;
}
.variable-category h3 {
  border-bottom: 1px solid var(--wtc-gray-300);
  color: var(--wtc-gray-900);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 var(--wtc-spacing-4);
  padding-bottom: var(--wtc-spacing-3);
}
.variable-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-2);
}
.variable-buttons .button {
  background: var(--wtc-gray-100);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  color: var(--wtc-gray-800);
  font-size: 13px;
  height: auto;
  line-height: 1.4;
  margin: 0;
  min-width: 170px;
  padding: var(--wtc-spacing-2) var(--wtc-spacing-3);
  text-align: left;
  transition: var(--wtc-transition);
  white-space: normal;
}
.variable-buttons .button:hover {
  background: var(--wtc-gray-200);
  border-color: var(--wtc-gray-400);
  color: var(--wtc-gray-900);
}
.contract-template-editor {
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-400);
  border-radius: var(--wtc-radius);
  box-shadow: var(--wtc-shadow-sm);
  margin-bottom: var(--wtc-spacing-6);
  padding: var(--wtc-spacing-5);
}
.contract-template-editor h3 {
  border-bottom: 1px solid var(--wtc-gray-300);
  color: var(--wtc-gray-900);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 var(--wtc-spacing-4);
  padding-bottom: var(--wtc-spacing-3);
}
.contract-template-editor .wp-editor-container {
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius-sm);
  overflow: hidden;
}
.wtc-fields-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.wtc-fields-section {
  flex: 1;
  min-width: 450px;
  background: #fcfcfc;
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  padding: 15px;
  margin-bottom: var(--wtc-spacing-5);
  box-shadow: var(--wtc-shadow-sm);
}
.wtc-fields-section h2 {
  margin-top: 0;
  font-size: 1.1em;
  border-bottom: 1px solid var(--wtc-gray-300);
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: var(--wtc-gray-900);
  font-weight: 500;
}
.wtc-sortable {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wtc-sortable-item {
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: 3px;
  margin-bottom: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: default;
}
.wtc-sortable-item:hover {
  border-color: #999;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.wtc-sortable-placeholder {
  border: 2px dashed var(--wtc-gray-400);
  background: var(--wtc-gray-100);
  min-height: 50px;
  margin-bottom: 8px;
  border-radius: 3px;
}
.wtc-custom-item {
  border-left: 4px solid var(--wtc-active) !important;
}
.wtc-item-handle {
  display: flex;
  align-items: center;
}
.wtc-drag-handle {
  cursor: move;
  color: #aaa;
  padding: 5px;
  font-size: 18px;
}
.wtc-drag-handle:hover {
  color: #333;
}
.wtc-item-content {
  flex: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.wtc-item-label {
  font-weight: 500;
  color: #1d2327;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wtc-item-meta {
  flex: 1;
}
.wtc-key-input {
  width: 250px;
  max-width: 100%;
  height: 30px;
  font-size: 12px;
  border: 1px solid var(--wtc-border);
  border-radius: var(--wtc-radius);
  padding: 0 8px;
  background-color: #fbfbfb;
  font-family: monospace;
}
.wtc-key-input:focus {
  background-color: #fff;
  border-color: var(--wtc-primary);
  box-shadow: 0 0 0 1px var(--wtc-primary);
}
.wtc-key-badge {
  font-family: monospace;
  background: var(--wtc-secondary);
  color: var(--wtc-text-light);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  border: 1px solid #e5e5e5;
}
.wtc-item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 170px;
  min-width: 170px;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}
.wtc-layout-select {
  width: 100px;
  font-size: 12px;
  height: 28px;
  min-height: 28px;
  border-radius: var(--wtc-radius-sm);
}
.wtc-edit-field-btn,
.wtc-delete-btn {
  padding: 0 5px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  min-width: 28px;
}
.wtc-edit-field-btn {
  color: var(--wtc-primary) !important;
  border-color: var(--wtc-primary) !important;
  background: transparent;
}
.wtc-edit-field-btn:hover {
  background: var(--wtc-primary) !important;
  color: #fff !important;
}
.wtc-delete-btn {
  color: var(--wtc-error) !important;
  border-color: var(--wtc-error) !important;
  background: transparent;
}
.wtc-delete-btn:hover {
  background: var(--wtc-error) !important;
  color: #fff !important;
}
.wtc-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wtc-ml-10 {
  margin-left: 10px;
}
#wtc-add-field-btn {
  margin-left: 50px !important;
}
.wtc-item-passive {
  opacity: 0.6;
  background-color: #f6f7f7 !important;
  border-left-color: var(--wtc-passive) !important;
}
.wtc-status-badge {
  font-size: 10px;
  background: #d63638;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 10px;
  font-weight: bold;
}
.wtc-select {
  background-color: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  color: var(--wtc-gray-800);
  min-width: 200px;
  padding: var(--wtc-spacing-1) var(--wtc-spacing-2);
}
@media screen and (max-width: 782px) {
  .wtc-fields-container {
    gap: var(--wtc-spacing-4);
  }
  .wtc-fields-section {
    flex: 1 1 100%;
    margin-bottom: var(--wtc-spacing-4);
    padding: var(--wtc-spacing-4);
  }
  .wtc-sortable-item {
    align-items: stretch;
    flex-direction: column;
    gap: var(--wtc-spacing-3);
    padding: var(--wtc-spacing-4);
  }
  .wtc-sortable-item .dashicons {
    align-self: flex-start;
    background: var(--wtc-gray-100);
    border-radius: var(--wtc-radius);
    font-size: 20px;
    padding: var(--wtc-spacing-2);
  }
  .wtc-sortable-item .field-label {
    margin-bottom: var(--wtc-spacing-2);
    margin-right: 0;
  }
  .wtc-layout-select {
    min-width: 100%;
    width: 100%;
  }
  .wtc-card {
    padding: var(--wtc-spacing-4);
  }
  .wtc-toggle-wrapper {
    display: block;
    margin-bottom: var(--wtc-spacing-3);
  }
  .wtc-form-table th,
  .wtc-form-table td {
    display: block;
    padding: var(--wtc-spacing-2) 0;
    width: 100%;
  }
  .wtc-form-table th {
    padding-bottom: var(--wtc-spacing-1);
  }
}
@media screen and (min-width: 783px) and (max-width: 1024px) {
  .wtc-fields-section {
    flex: 1 1 45%;
  }
}
.wtc-cargo-companies-wrapper {
  margin-top: var(--wtc-spacing-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-6);
}
.wtc-cargo-companies-list {
  margin-bottom: var(--wtc-spacing-8);
  flex: 1 1 500px;
}
.wtc-cargo-company-add {
  flex: 1 1 400px;
}
#cargo-companies-sortable {
  list-style: none;
  margin: 0 0 var(--wtc-spacing-5) 0;
  padding: 0;
}
#cargo-companies-sortable .wtc-sortable-item {
  display: flex;
  align-items: center;
  padding: var(--wtc-spacing-3);
  margin-bottom: var(--wtc-spacing-2);
  background-color: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  cursor: move;
  transition: background 0.2s ease;
}
#cargo-companies-sortable .wtc-sortable-item:hover {
  background-color: var(--wtc-gray-100);
  border-color: var(--wtc-gray-400);
}
#cargo-companies-sortable .wtc-sortable-item.ui-sortable-helper {
  box-shadow: var(--wtc-shadow-md);
  background-color: var(--wtc-gray-100);
  border-color: var(--wtc-gray-400);
}
#cargo-companies-sortable .wtc-sortable-item .dashicons {
  color: var(--wtc-gray-600);
  cursor: move;
  margin-right: var(--wtc-spacing-3);
}
#cargo-companies-sortable .wtc-sortable-item .wtc-cargo-company-logo {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--wtc-spacing-3);
}
#cargo-companies-sortable .wtc-cargo-company-logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}
#cargo-companies-sortable .wtc-company-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--wtc-spacing-1);
  margin-right: var(--wtc-spacing-3);
}
#cargo-companies-sortable .company-name {
  font-weight: 500;
  color: var(--wtc-gray-900);
}
#cargo-companies-sortable .wtc-company-actions {
  display: flex;
  gap: var(--wtc-spacing-2);
}
.wtc-save-order-wrapper {
  display: flex;
  align-items: center;
  gap: var(--wtc-spacing-3);
  margin-top: var(--wtc-spacing-4);
}
.wtc-save-order-wrapper .spinner {
  float: none;
}
.wtc-save-order-wrapper .wtc-message {
  color: var(--wtc-success);
  font-weight: 500;
}
.wtc-no-logo {
  display: inline-block;
  background: var(--wtc-gray-100);
  padding: var(--wtc-spacing-1) var(--wtc-spacing-2);
  border-radius: var(--wtc-radius);
  font-weight: 500;
  color: var(--wtc-gray-800);
}
.wtc-status-active {
  background-color: var(--wtc-success);
  color: var(--wtc-white);
  padding: 3px 8px;
  border-radius: var(--wtc-radius);
  font-weight: 500;
  display: inline-block;
  font-size: 12px;
  align-self: flex-start;
}
.wtc-status-inactive {
  background-color: var(--wtc-gray-600);
  color: var(--wtc-white);
  padding: 3px 8px;
  border-radius: var(--wtc-radius);
  font-weight: 500;
  display: inline-block;
  font-size: 12px;
  align-self: flex-start;
}
.wtc-cargo-company-form {
  background: var(--wtc-light-gray);
  padding: var(--wtc-spacing-4);
  border: 1px solid var(--wtc-gray-300);
  box-shadow: var(--wtc-shadow-sm);
  border-radius: var(--wtc-radius);
}
.wtc-cargo-company-form .wtc-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: var(--wtc-spacing-3);
}
.wtc-cargo-company-edit-row td {
  padding: 0;
}
.wtc-cargo-company-form .form-field {
  margin-bottom: var(--wtc-spacing-4);
}
.wtc-cargo-company-form .form-field label {
  display: block;
  margin-bottom: var(--wtc-spacing-2);
  font-weight: 500;
}
.wtc-cargo-company-form .form-field input[type="text"],
.wtc-cargo-company-form .form-field input[type="url"],
.wtc-cargo-company-form .form-field input[type="number"],
.wtc-cargo-company-form .form-field select {
  width: 100%;
  max-width: 400px;
}
@media screen and (max-width: 782px) {
  .wtc-cargo-companies-wrapper {
    flex-direction: column;
  }
  #cargo-companies-sortable .wtc-sortable-item {
    flex-wrap: wrap;
  }
  #cargo-companies-sortable .wtc-company-info {
    width: 100%;
    margin: var(--wtc-spacing-2) 0;
  }
  #cargo-companies-sortable .wtc-company-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: var(--wtc-spacing-2);
  }
}
.wtc-logo-upload-field {
  display: flex;
  align-items: center;
  max-width: 400px;
}
.wtc-logo-upload-field input[type="url"] {
  flex-grow: 1;
  margin-right: var(--wtc-spacing-2);
}
.wtc-logo-preview {
  margin-top: var(--wtc-spacing-3);
  max-width: 100px;
  border: 1px solid var(--wtc-gray-300);
  padding: 5px;
  background: var(--wtc-white);
}
.wtc-logo-preview img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wtc-cargo-company-logo img {
  max-width: 60px;
  max-height: 30px;
}
.wtc-cargo-company-actions {
  white-space: nowrap;
}
.wtc-sms-test-area {
  margin-top: var(--wtc-spacing-8);
  padding-top: var(--wtc-spacing-5);
  border-top: 1px solid var(--wtc-gray-300);
}
.wtc-template-variables {
  margin-top: var(--wtc-spacing-2);
}
.wtc-template-variables li {
  margin-bottom: var(--wtc-spacing-2);
}
.wtc-template-variables code {
  background: var(--wtc-gray-100);
  padding: 2px 5px;
}
.column-wtc_cargo_tracking {
  width: 200px;
}
#wtc-cargo-tracking-box .inside {
  padding: var(--wtc-spacing-3);
  margin: 0;
}
.wtc-tracking-form {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "select button"
    "input button";
  width: 100%;
  max-width: 250px;
}
.wtc-cargo-company-select {
  grid-area: select;
  width: 100%;
  margin-bottom: 6px;
  padding: 6px;
  border-radius: var(--wtc-radius);
}
.wtc-tracking-number {
  grid-area: input;
  width: 100%;
  margin-bottom: 6px;
  padding: 6px;
  border-radius: var(--wtc-radius);
}
.wtc-save-tracking.ajax-save {
  grid-area: button;
  margin-left: 5px;
  min-width: 60px;
  margin-bottom: 6px;
}
.wtc-tracking-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.wtc-tracking-info a {
  text-decoration: none;
}
.wtc-company-logo {
  max-width: 80px;
  max-height: 30px;
  object-fit: contain;
  margin-bottom: 5px;
}
.wtc-cargo-company-select,
.wtc-tracking-number {
  width: 100%;
  margin-bottom: 6px;
  padding: 6px;
  border-radius: var(--wtc-radius);
}
.wtc-tracking-number,
.wtc-save-tracking.ajax-save {
  display: none !important;
}
.wtc-tracking-number.wtc-active,
.wtc-save-tracking.ajax-save.wtc-active {
  display: inline-block !important;
}
.wtc-save-tracking {
  width: 100%;
  text-align: center;
  font-weight: 600 !important;
  background-color: var(--wtc-primary) !important;
  color: white !important;
  border: none !important;
  padding: 2px !important;
  cursor: pointer !important;
  border-radius: var(--wtc-radius) !important;
}
.wtc-save-tracking:hover {
  background-color: var(--wtc-primary-hover) !important;
}
.wtc-edit-btn {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--wtc-primary);
  text-decoration: none;
  cursor: pointer;
}
.wtc-edit-btn:hover {
  color: var(--wtc-primary-hover);
  text-decoration: underline;
}
.order-status.status-shipped {
  background-color: #f5d501;
  color: #312a00;
}
.order-status.status-refund-requested {
  background-color: #e6b1ff;
  color: #1c0029;
}
.order-status.status-refunded {
  background-color: #ff2f2f;
  color: #ffffff;
}
.order-status.status-requested {
  background-color: #8eff8e;
  color: #004b00;
}
.order-status.status-cancelled {
  background-color: #c7c7c7;
  color: #1e1e1e;
}
.wtc-tracking-logo-only {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
}
.wtc-company-logo {
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
  vertical-align: middle;
}
.wtc-company-logo:hover {
  transform: scale(1.05);
}
.wtc-logo-text {
  font-weight: bold;
  color: var(--wtc-primary);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  background-color: var(--wtc-gray-100);
  transition: background-color 0.2s ease;
}
.wtc-logo-text:hover {
  background-color: var(--wtc-gray-200);
  color: var(--wtc-primary-hover);
}
.wtc-minimal-edit-btn {
  display: inline-block;
  font-size: 12px;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  position: absolute;
  right: 5px;
  top: 5px;
}
.wtc-tracking-single-container {
  position: relative;
}
.wtc-tracking-single-container:hover .wtc-minimal-edit-btn {
  opacity: 1;
}
.wtc-sms-settings-form {
  max-width: 800px;
}
.wtc-sms-settings-form .form-field {
  margin-bottom: var(--wtc-spacing-4);
}
.wtc-sms-settings-form .form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--wtc-spacing-2);
  color: var(--wtc-gray-900);
}
.wtc-sms-settings-form .form-field input[type="text"],
.wtc-sms-settings-form .form-field input[type="password"],
.wtc-sms-settings-form .form-field select,
.wtc-sms-settings-form .form-field textarea {
  width: 100%;
  max-width: 400px;
}
.wtc-sms-settings-form .form-field textarea {
  min-height: 100px;
}
.wtc-sms-settings-form .form-field .description {
  color: var(--wtc-gray-700);
  font-size: 13px;
  font-style: italic;
  margin-top: var(--wtc-spacing-2);
}
.wtc-sms-settings-form #send_test_sms {
  margin-left: var(--wtc-spacing-4);
}
.wtc-sms-settings-form #test_phone {
  width: 200px;
}
.wtc-sms-settings-form #sms_provider {
  width: 100%;
  max-width: 400px;
}
.wtc-sms-settings-form #sms_template {
  font-family: monospace;
  line-height: 1.5;
}
.wtc-sms-settings-form .form-field:last-child {
  margin-top: var(--wtc-spacing-6);
  padding-top: var(--wtc-spacing-4);
  border-top: 1px solid var(--wtc-gray-300);
}
@media screen and (max-width: 782px) {
  .wtc-sms-settings-form .form-field input[type="text"],
  .wtc-sms-settings-form .form-field input[type="password"],
  .wtc-sms-settings-form .form-field select,
  .wtc-sms-settings-form .form-field textarea {
    max-width: 100%;
  }
  .wtc-sms-settings-form #send_test_sms {
    margin-left: 0;
    margin-top: var(--wtc-spacing-2);
    width: 100%;
  }
}
.wtc-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.wtc-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}
.wtc-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.wtc-modal-close:hover,
.wtc-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.wtc-modal-body {
  padding: 10px 0;
}
.wtc-modal-actions {
  margin-top: 20px;
}
.wtc-sortable-placeholder {
  border: 2px dashed var(--wtc-gray-400);
  background: var(--wtc-gray-100);
  margin-bottom: var(--wtc-spacing-3);
  min-height: 50px;
  border-radius: var(--wtc-radius);
}
.wtc-sms-templates-wrapper {
  margin-top: var(--wtc-spacing-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-6);
}
.wtc-sms-templates-list {
  margin-bottom: var(--wtc-spacing-8);
  flex: 1 1 500px;
}
.wtc-sms-template-add {
  flex: 1 1 400px;
}
#sms-templates-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wtc-template-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-bottom: 10px;
}
.wtc-template-item:hover {
  border-color: #999;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.wtc-template-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.wtc-template-info .template-name {
  font-weight: 600;
}
.wtc-template-info .template-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
}
.wtc-template-active .template-status {
  background: #46b450;
  color: #fff;
}
.wtc-template-inactive .template-status {
  background: #bbb;
  color: #fff;
}
.wtc-template-actions {
  display: flex;
  gap: 5px;
}
.wtc-template-variables {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.variable-category {
  margin-bottom: 15px;
}
.variable-category:last-child {
  margin-bottom: 0;
}
.variable-category h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #23282d;
}
.variable-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.wtc-insert-variable {
  font-size: 12px !important;
  height: 24px !important;
  line-height: 22px !important;
  padding: 0 8px !important;
}
.wtc-sms-template-form {
  background: var(--wtc-light-gray);
  padding: var(--wtc-spacing-4);
  border: 1px solid var(--wtc-gray-300);
  box-shadow: var(--wtc-shadow-sm);
  border-radius: var(--wtc-radius);
}
.wtc-sms-template-form .form-field {
  margin-bottom: var(--wtc-spacing-4);
}
.wtc-sms-template-form .form-field label {
  display: block;
  margin-bottom: var(--wtc-spacing-2);
  font-weight: 500;
}
.wtc-sms-template-form .form-field input[type="text"],
.wtc-sms-template-form .form-field select,
.wtc-sms-template-form .form-field textarea {
  width: 100%;
  max-width: 400px;
}
.wtc-sms-template-form .form-field textarea {
  min-height: 120px;
}
.wtc-sms-template-form .description {
  color: var(--wtc-gray-700);
  font-size: 13px;
  font-style: italic;
  margin-top: var(--wtc-spacing-2);
}
.wtc-sms-template-form .wtc-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: var(--wtc-spacing-3);
}
.wtc-sms-template-form .wtc-template-variables {
  margin-top: var(--wtc-spacing-3);
  padding: var(--wtc-spacing-3);
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
}
.wtc-sms-template-form .variable-category {
  margin-bottom: var(--wtc-spacing-3);
}
.wtc-sms-template-form .variable-category:last-child {
  margin-bottom: 0;
}
.wtc-sms-template-form .variable-category h4 {
  margin: 0 0 var(--wtc-spacing-2);
  font-size: 14px;
  color: var(--wtc-gray-900);
}
.wtc-sms-template-form .variable-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-2);
}
.wtc-sms-template-form .wtc-insert-variable {
  font-size: 12px !important;
  height: 24px !important;
  line-height: 22px !important;
  padding: 0 8px !important;
}
@media screen and (max-width: 782px) {
  .wtc-sms-template-form .form-field input[type="text"],
  .wtc-sms-template-form .form-field select,
  .wtc-sms-template-form .form-field textarea {
    max-width: 100%;
  }
  .wtc-sms-template-form .wtc-toggle-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
.wtc-status-success {
  color: #46b450;
  font-weight: bold;
}
.wtc-status-error {
  color: #dc3232;
  font-weight: bold;
}
.wtc-operation-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--wtc-radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}
.wtc-operation-login {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}
.wtc-operation-register {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #e1bee7;
}
.wtc-operation-checkout {
  background-color: #e8f5e8;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}
.wtc-operation-unknown {
  background-color: #f5f5f5;
  color: #757575;
  border: 1px solid #e0e0e0;
}
.wtc-otp-templates-wrapper {
  margin-top: var(--wtc-spacing-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-6);
}
.wtc-otp-templates-list {
  margin-bottom: var(--wtc-spacing-8);
  flex: 1 1 500px;
}
#otp-templates-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wtc-otp-template-form {
  background: var(--wtc-light-gray);
  padding: var(--wtc-spacing-4);
  border: 1px solid var(--wtc-gray-300);
  box-shadow: var(--wtc-shadow-sm);
  border-radius: var(--wtc-radius);
}
.wtc-otp-template-form .form-field {
  margin-bottom: var(--wtc-spacing-4);
}
.wtc-otp-template-form .form-field label {
  display: block;
  margin-bottom: var(--wtc-spacing-2);
  font-weight: 500;
}
.wtc-otp-template-form .form-field input[type="text"],
.wtc-otp-template-form .form-field textarea {
  width: 100%;
  max-width: 400px;
}
.wtc-otp-template-form .form-field textarea {
  min-height: 120px;
}
.wtc-otp-template-form .description {
  color: var(--wtc-gray-700);
  font-size: 13px;
  font-style: italic;
  margin-top: var(--wtc-spacing-2);
}
.wtc-otp-template-form .wtc-template-variables {
  margin-top: var(--wtc-spacing-3);
  padding: var(--wtc-spacing-3);
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
}
.wtc-otp-template-form .variable-category {
  margin-bottom: var(--wtc-spacing-3);
}
.wtc-otp-template-form .variable-category:last-child {
  margin-bottom: 0;
}
.wtc-otp-template-form .variable-category h4 {
  margin: 0 0 var(--wtc-spacing-2);
  font-size: 14px;
  color: var(--wtc-gray-900);
}
.wtc-otp-template-form .variable-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-2);
}
.wtc-otp-template-form .wtc-insert-variable {
  font-size: 12px !important;
  height: 24px !important;
  line-height: 22px !important;
  padding: 0 8px !important;
}
.order-status.status-checkout {
  background-color: #e8f5e8;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}
.order-status.status-login {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}
.order-status.status-register {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #e1bee7;
}
@media screen and (max-width: 782px) {
  .wtc-otp-template-form .form-field textarea {
    max-width: 100%;
  }
}
.wtc-logs-filter {
  margin-bottom: 20px;
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  box-shadow: var(--wtc-shadow-sm);
}
.wtc-logs-filter h3 {
  margin-top: 0;
  color: var(--wtc-gray-900);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--wtc-spacing-4);
  padding-bottom: var(--wtc-spacing-3);
  border-bottom: 1px solid var(--wtc-gray-300);
}
.wtc-logs-filter .form-table {
  margin-top: 0;
  table-layout: fixed;
  width: 100%;
}
.wtc-logs-filter .form-table th {
  width: 160px;
  font-weight: 600;
  color: var(--wtc-gray-800);
}
.wtc-logs-filter .form-table td {
  padding: 10px 10px 10px 0;
}
.wtc-logs-filter .form-table input[type="date"],
.wtc-logs-filter .form-table input[type="text"],
.wtc-logs-filter .form-table input[type="number"],
.wtc-logs-filter .form-table select {
  width: 100%;
  max-width: 250px;
  border-color: var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
}
.wtc-logs-filter .form-table input[type="date"]:focus,
.wtc-logs-filter .form-table input[type="text"]:focus,
.wtc-logs-filter .form-table input[type="number"]:focus,
.wtc-logs-filter .form-table select:focus {
  border-color: var(--wtc-primary);
  box-shadow: 0 0 0 1px var(--wtc-primary);
}
.wtc-logs-filter .submit {
  margin-top: 15px;
  padding: 0;
  display: flex;
  gap: 10px;
}
.wtc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.wtc-stat-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 12px;
  text-align: center;
}
.wtc-stat-item .stat-number {
  display: block;
  font-size: 22px;
  font-weight: 600;
}
.wtc-stat-item .stat-label {
  display: block;
  font-size: 13px;
  color: #666;
}
.wtc-admin-wrap {
  margin: 20px 0;
}
.wtc-settings-section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.wtc-settings-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.wtc-tabs-wrapper {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.wtc-tabs-header {
  background-color: #f9f9f9;
  border-bottom: 1px solid #e5e5e5;
}
.wtc-tabs-nav {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wtc-tab {
  margin: 0;
}
.wtc-tab-link {
  display: block;
  padding: 10px 15px;
  color: #444;
  text-decoration: none;
  border-right: 1px solid #e5e5e5;
  font-weight: 600;
}
.wtc-tab.active .wtc-tab-link {
  background-color: #fff;
  margin-bottom: -1px;
  color: #0073aa;
  border-bottom: 2px solid #0073aa;
}
.wtc-tabs-content {
  padding: 20px;
}
.wtc-tab-panel {
  display: block;
}
.wtc-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.wtc-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.wtc-toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.wtc-toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.wtc-toggle-switch input:checked+.slider {
  background-color: #0073aa;
}
.wtc-toggle-switch input:focus+.slider {
  box-shadow: 0 0 1px #0073aa;
}
.wtc-toggle-switch input:checked+.slider:before {
  transform: translateX(26px);
}
.wtc-checkbox-label {
  display: block;
  margin-bottom: 8px;
}
.wtc-refund-reason-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: var(--wtc-radius);
}
.wtc-refund-reason-item input[type="text"] {
  flex: 1;
  margin-right: 10px;
}
.wtc-refund-reason-item .wtc-toggle-switch {
  margin: 0 10px;
}
.wtc-add-reason {
  margin-top: 15px !important;
}
.wtc-refund-requests {
  padding: var(--wtc-spacing-4) 0;
}
.wtc-refund-requests h3 {
  margin-top: var(--wtc-spacing-6);
  margin-bottom: var(--wtc-spacing-4);
  color: var(--wtc-gray-900);
  font-size: 16px;
  font-weight: 500;
}
.wtc-refund-requests-filters {
  margin-bottom: var(--wtc-spacing-6);
  padding: var(--wtc-spacing-5);
  background-color: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
}
.wtc-refund-requests-filters .form-table th {
  width: 120px;
  padding-right: 10px;
  font-weight: 500;
}
.wtc-refund-requests-filters .form-table td {
  padding: 5px 10px;
}
.wtc-refund-details {
  background-color: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  margin-bottom: var(--wtc-spacing-6);
  padding: var(--wtc-spacing-5);
}
.wtc-refund-details-header {
  margin-bottom: var(--wtc-spacing-4);
  padding-bottom: var(--wtc-spacing-3);
  border-bottom: 1px solid var(--wtc-gray-300);
}
.wtc-refund-details-header h3 {
  margin-top: 0;
  color: var(--wtc-gray-900);
  font-size: 16px;
  font-weight: 500;
}
.wtc-refund-details-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--wtc-spacing-3);
}
.wtc-refund-details-label {
  font-weight: 600;
  margin-right: var(--wtc-spacing-4);
  min-width: 120px;
}
.wtc-refund-details-value {
  flex: 1;
}
.wtc-refund-products-list {
  margin-top: var(--wtc-spacing-4);
}
.wtc-refund-product-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--wtc-gray-200);
  padding: var(--wtc-spacing-3) 0;
}
.wtc-refund-product-item:last-child {
  border-bottom: none;
}
.wtc-refund-product-thumbnail {
  width: 50px;
  height: 50px;
  margin-right: var(--wtc-spacing-3);
}
.wtc-refund-product-thumbnail img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wtc-refund-product-info {
  flex: 1;
}
.wtc-refund-product-name {
  font-weight: 500;
  color: var(--wtc-gray-900);
}
.wtc-refund-product-meta {
  color: var(--wtc-gray-700);
  font-size: 13px;
  margin-top: 3px;
}
.wtc-refund-product-price {
  margin-left: var(--wtc-spacing-4);
  font-weight: 500;
  color: var(--wtc-gray-900);
}
.wtc-refund-images-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wtc-spacing-3);
  margin-top: var(--wtc-spacing-4);
}
.wtc-refund-image-item {
  width: 120px;
  height: 120px;
  border-radius: var(--wtc-radius);
  overflow: hidden;
  border: 1px solid var(--wtc-gray-300);
}
.wtc-refund-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wtc-refund-details-box {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}
.wtc-refund-info {
  margin-bottom: 15px;
}
.wtc-refund-products {
  margin-bottom: 15px;
}
.wtc-refund-images {
  margin-bottom: 15px;
}
.wtc-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wtc-image-item {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #ddd;
}
.wtc-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wtc-refund-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
@media screen and (max-width: 782px) {
  .wtc-tabs-nav {
    flex-direction: column;
  }
  .wtc-tab-link {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }
  .wtc-filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .wtc-filter-status,
  .wtc-filter-search {
    width: 100%;
    margin-bottom: 10px;
  }
  .wtc-filter-status select,
  .wtc-filter-search input {
    width: 100%;
  }
  .wtc-refund-requests-filters .form-table th,
  .wtc-refund-requests-filters .form-table td {
    display: block;
    width: 100%;
    padding: 5px 0;
  }
  .wtc-refund-details-row {
    flex-direction: column;
  }
  .wtc-refund-details-label {
    margin-bottom: var(--wtc-spacing-2);
  }
  .wtc-refund-requests-filters input[type="date"],
  .wtc-refund-requests-filters select {
    max-width: 100%;
  }
  .wtc-refund-product-item {
    flex-wrap: wrap;
  }
  .wtc-refund-product-price {
    margin-left: 60px;
    margin-top: var(--wtc-spacing-2);
  }
  .wtc-modal-content {
    width: 95%;
    margin: 10% auto;
  }
}
.wtc-refund-button-locations {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.wtc-location-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
}
.wtc-location-group:first-child {
  background-color: var(--wtc-gray-100);
}
.wtc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wtc-blocked-users {
  margin-top: 20px;
}
.wtc-blocked-users .widefat {
  border-collapse: collapse;
  width: 100%;
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-300);
  border-radius: var(--wtc-radius);
  overflow: hidden;
  box-shadow: var(--wtc-shadow-sm);
}
.wtc-blocked-users .widefat thead {
  background: var(--wtc-gray-100);
}
.wtc-blocked-users .widefat thead th {
  padding: 12px 15px;
  font-weight: 600;
  color: var(--wtc-gray-800);
  border-bottom: 2px solid var(--wtc-gray-300);
  text-align: left;
  font-size: 14px;
}
.wtc-blocked-users .widefat tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--wtc-gray-200);
  vertical-align: middle;
  font-size: 14px;
}
.wtc-blocked-users .widefat tbody tr:hover {
  background-color: var(--wtc-light-gray);
}
.wtc-blocked-users .widefat tbody tr:last-child td {
  border-bottom: none;
}
.wtc-remaining-time {
  font-weight: 600;
  color: var(--wtc-error);
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: var(--wtc-radius-sm);
  border: 1px solid #fecaca;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}
.wtc-unblock-btn {
  background: var(--wtc-success) !important;
  color: var(--wtc-white) !important;
  border: 1px solid var(--wtc-success) !important;
  padding: 6px 12px !important;
  border-radius: var(--wtc-radius-sm) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.wtc-unblock-btn:hover {
  background: #3a9b3a !important;
  border-color: #3a9b3a !important;
  color: var(--wtc-white) !important;
  transform: translateY(-1px);
  box-shadow: var(--wtc-shadow-sm);
}
.wtc-unblock-btn:disabled {
  background: var(--wtc-gray-400) !important;
  border-color: var(--wtc-gray-400) !important;
  color: var(--wtc-white) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
.wtc-blocked-users .notice {
  margin: 20px 0;
  padding: 15px;
  border-radius: var(--wtc-radius);
  border-left: 4px solid var(--wtc-info);
  background: #f0f8ff;
  color: var(--wtc-gray-800);
}
.wtc-blocked-users .notice p {
  margin: 0;
  font-size: 14px;
}
.wtc-reason-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--wtc-radius);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}
.wtc-reason-send-limit {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}
.wtc-reason-max-attempts {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
@media (max-width: 768px) {
  .wtc-blocked-users .widefat {
    font-size: 12px;
  }
  .wtc-blocked-users .widefat thead th,
  .wtc-blocked-users .widefat tbody td {
    padding: 8px 10px;
  }
  .wtc-remaining-time {
    font-size: 11px;
    padding: 2px 6px;
    min-width: 60px;
  }
  .wtc-unblock-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}
:root {
  --ct-green: #28a745;
  --ct-blue: #007bff;
  --ct-gray-100: #f8f9fa;
  --ct-gray-200: #e9ecef;
  --ct-gray-600: #6c757d;
  --ct-gray-800: #343a40;
  --ct-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wtc-ct-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: var(--ct-font-family);
}
.wtc-ct-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.wtc-ct-modal-container {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 850px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  overflow: hidden;
}
.wtc-ct-modal-overlay.active .wtc-ct-modal-container {
  transform: scale(1);
  opacity: 1;
}
.wtc-ct-modal-header {
  padding: 15px;
  border-bottom: 1px solid var(--ct-gray-200);
  position: relative;
}
.wtc-ct-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-gray-800);
  text-align: left;
}
.wtc-ct-modal-header h3 small {
  font-size: 13px;
  color: var(--ct-gray-600);
  font-weight: 400;
  margin-left: 8px;
}
.wtc-ct-modal-close {
  position: absolute !important;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  color: var(--ct-gray-600);
  transition: all 0.2s ease;
  margin-right: auto;
  padding: inherit;
}
.wtc-ct-modal-close:hover {
  background: transparent;
  color: var(--ct-gray-800);
}
.wtc-ct-modal-body {
  padding: 25px;
  overflow-y: auto;
  background-color: var(--ct-gray-100);
}
.wtc-ct-loader-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 16px;
  color: var(--ct-gray-600);
}
.wtc-ct-loader {
  border: 4px solid var(--ct-gray-200);
  border-radius: 50%;
  border-top: 4px solid var(--ct-blue);
  width: 40px;
  height: 40px;
  animation: wtc-ct-spin 1s linear infinite;
  margin-right: 15px;
}
@keyframes wtc-ct-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.wtc-ct-layout-wrapper {
  display: flex;
  gap: 25px;
}
.wtc-ct-left-column {
  flex: 0 0 300px;
}
.wtc-ct-right-column {
  flex: 1;
  min-width: 0;
}
.wtc-ct-info-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--ct-gray-200);
}
.wtc-ct-info-card:last-child {
  margin-bottom: 0;
}
.wtc-ct-card-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-gray-800);
  border-bottom: 1px solid var(--ct-gray-200);
  padding-bottom: 10px;
}
.wtc-ct-status-badge {
  display: inline-block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}
.wtc-ct-status-badge--success {
  background-color: #d4edda;
  color: #155724;
}
.wtc-ct-status-badge--info {
  background-color: #d1ecf1;
  color: #0c5460;
}
.wtc-ct-status-badge--default {
  background-color: var(--ct-gray-200);
  color: var(--ct-gray-800);
}
.wtc-ct-teslim-alan {
  font-size: 13px;
  color: var(--ct-gray-600);
  margin-top: 10px;
  text-align: center;
}
.wtc-ct-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wtc-ct-info-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ct-gray-100);
}
.wtc-ct-info-list li:last-child {
  border-bottom: none;
}
.wtc-ct-info-list li span {
  color: var(--ct-gray-600);
}
.wtc-ct-info-list li strong {
  color: var(--ct-gray-800);
  text-align: right;
}
.wtc-ct-history-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.wtc-ct-history-card .wtc-ct-card-title {
  padding: 20px 20px 10px 20px;
}
.wtc-ct-history-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 0 10px 0 20px;
}
.wtc-ct-history-table {
  width: 100%;
  border-collapse: collapse;
}
.wtc-ct-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-gray-600);
  border-bottom: 1px solid var(--ct-gray-200);
}
.wtc-ct-history-table td {
  padding: 12px 15px;
  font-size: 14px;
  color: var(--ct-gray-800);
  border-bottom: 1px solid var(--ct-gray-200);
}
.wtc-ct-history-table tbody tr:last-child td {
  border-bottom: none;
}
.wtc-ct-history-table tbody tr:hover td {
  background-color: var(--ct-gray-100);
}
.wtc-ct-history-table .wtc-ct-date-cell {
  font-weight: 500;
  white-space: nowrap;
}
.wtc-ct-history-table .wtc-ct-date-cell span {
  display: block;
  font-size: 12px;
  color: var(--ct-gray-600);
  font-weight: 400;
}
.wtc-ct-history-table td span {
  font-size: 12px;
  color: var(--ct-gray-600);
}
.wtc-ct-history-table th:first-child,
.wtc-ct-history-table .wtc-ct-date-cell {
  text-align: center;
}
.wtc-ct-error-message {
  padding: 20px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  text-align: center;
}
.wtc-logo-button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.wtc-logo-button:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .wtc-ct-layout-wrapper {
    flex-direction: column;
  }
  .wtc-ct-left-column {
    flex-basis: auto;
  }
  .wtc-ct-history-scroll {
    max-height: 250px;
  }
}
.wtc-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 160000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.wtc-modal[style*="display: flex"] {
  opacity: 1;
}
.wtc-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}
.wtc-modal-wrapper {
  position: relative;
  background: #fff;
  width: 500px;
  max-width: 90%;
  max-height: 85vh;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 160001;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}
@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.wtc-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfcfc;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}
.wtc-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
}
.wtc-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: calc(85vh - 110px);
}
.wtc-modal-footer {
  padding: 15px 20px;
  background: #fcfcfc;
  border-top: 1px solid #dcdcde;
  text-align: right;
  border-radius: 0 0 8px 8px;
  flex-shrink: 0;
}
.wtc-modal .form-field {
  margin-bottom: 15px;
}
.wtc-modal label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d2327;
  font-size: 13px;
}
.wtc-modal .widefat {
  height: 36px;
  border-color: #ccc;
  max-width: 100% !important;
  width: 100% !important;
}
.wtc-modal textarea.widefat {
  height: auto;
  padding: 10px;
}
.wtc-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 0;
}
.wtc-close:hover {
  color: #d00;
}
.form-field {
  margin-bottom: 15px;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}
.form-field .description {
  color: #666;
  font-style: italic;
  margin-top: 3px;
}
.wtc-form-grid {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wtc-form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.wtc-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wtc-form-group label {
  font-weight: 600;
  color: var(--wtc-gray-900);
}
.wtc-col-grow {
  flex: 1;
}
.wtc-col-fixed-sm {
  width: 150px;
  min-width: 150px;
}
.full-width {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.wtc-form-actions {
  margin-top: 10px;
}
.wtc-response-message {
  margin-top: 20px;
  font-weight: 600;
  font-size: 14px;
}
@media screen and (max-width: 782px) {
  .wtc-form-row {
    flex-direction: column;
    gap: 15px;
  }
  .wtc-col-fixed-sm {
    width: 100%;
  }
}
.wtc-style-settings-wrapper {
  margin-top: 20px;
}
.wtc-style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}
.wtc-style-col-half {
  flex: 1 1 calc(50% - 10px);
  min-width: 400px;
}
.wtc-style-panel {
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-400);
  border-radius: var(--wtc-radius);
  box-shadow: var(--wtc-shadow-sm);
  height: 100%;
}
.wtc-style-panel h3 {
  background: var(--wtc-gray-100);
  border-bottom: 1px solid var(--wtc-gray-300);
  margin: 0;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wtc-gray-900);
  border-radius: var(--wtc-radius) var(--wtc-radius) 0 0;
}
.wtc-style-fields {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.wtc-style-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wtc-style-field>label {
  font-size: 12px;
  font-weight: 500;
  color: var(--wtc-gray-700);
}
.wtc-style-input {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wtc-style-input .suffix {
  font-size: 12px;
  color: var(--wtc-gray-600);
}
.wtc-style-input .small-text {
  width: 80px;
}
.wtc-style-input select {
  min-width: 180px;
}
.wtc-style-row-title {
  flex: 1 1 100%;
  margin: 0 0 5px 0;
  padding: 0 0 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--wtc-gray-900);
  border-bottom: 1px solid var(--wtc-gray-300);
}
.wtc-style-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}
.wtc-style-card-panel {
  background: var(--wtc-white);
  border: 1px solid var(--wtc-gray-400);
  border-radius: var(--wtc-radius);
  box-shadow: var(--wtc-shadow-sm);
  overflow: hidden;
}
.wtc-style-card-panel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wtc-gray-100);
  border-bottom: 1px solid var(--wtc-gray-300);
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wtc-gray-900);
}
.wtc-style-card-panel .wtc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.wtc-style-card-panel .wtc-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--wtc-primary);
}
.wtc-style-card-panel .wtc-style-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.wtc-style-card-panel .wtc-style-field {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.wtc-style-card-panel .wtc-style-field>label {
  font-size: 12px;
  min-width: 80px;
}
@media screen and (max-width: 1400px) {
  .wtc-style-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 1024px) {
  .wtc-style-col-half {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
@media screen and (max-width: 782px) {
  .wtc-style-cards-grid {
    grid-template-columns: 1fr;
  }
  .wtc-style-fields {
    grid-template-columns: 1fr;
  }
}