#gksoft-delivery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
#gksoft-delivery-modal.is-open {
  display: flex;
}
.gksoft-delivery-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.gksoft-delivery-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}
.gksoft-delivery-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 18px;
}
.gksoft-delivery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gksoft-delivery-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #111;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.gksoft-delivery-option:hover {
  border-color: #111;
  transform: translateY(-1px);
}
.gksoft-delivery-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: 220px;
}
.gksoft-delivery-switcher-title {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.2;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.gksoft-delivery-switcher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gksoft-delivery-switcher-toggle,
.gksoft-delivery-switcher-edit {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.gksoft-delivery-switcher-toggle {
  font-weight: 700;
  font-size: 14px;
}
.gksoft-delivery-switcher-edit {
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
}
.gksoft-delivery-switcher-edit:hover,
.gksoft-delivery-switcher-toggle:hover {
  opacity: 1;
}
.gksoft-dynamic-price {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .gksoft-delivery-switcher {
    position: fixed !important;
    bottom: 70px !important;
    right: 5px !important;
    left: auto !important;
    width: auto !important;
    max-width: 200px !important;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 9999 !important;
    align-items: center;
    gap: 8px;
  }
}

body.woocommerce-cart .gksoft-delivery-switcher,
body.woocommerce-checkout .gksoft-delivery-switcher {
  display: none !important;
}
