.obi-ads-slot {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit
}

.obi-ads-slot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px
}

.obi-ads-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4dd 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: obiAdsShimmer 1.5s ease-in-out infinite
}

.obi-ads-slot-placeholder--landscape {
  min-height: 120px;
  max-width: 728px
}

.obi-ads-slot-placeholder--vertical_rectangle {
  min-height: 300px;
  max-width: 300px
}

@keyframes obiAdsShimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

.obi-ads-slot-empty {
  min-height: 100px;
  padding: 18px;
  border: 1px dashed #c7bba5;
  border-radius: 12px;
  background: #faf7f0;
  color: #6d5d45;
  font-size: 13px;
  text-align: center
}

.obi-ads-consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 360px;
  padding: 18px 20px;
  border: 1px solid #d9c8a7;
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 18px 40px rgba(74, 53, 22, .18)
}

.obi-ads-consent-banner p {
  margin: 0 0 14px;
  color: #3b2d1f;
  line-height: 1.5
}

.obi-ads-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.obi-ads-consent-banner button {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #1f6f5f;
  color: #fff;
  font-weight: 600;
  cursor: pointer
}

.obi-ads-consent-banner button[data-obi-consent="rejected"] {
  background: #8f4b32
}

.obi-ads-admin-wrap {
  max-width: 1240px
}

.obi-ads-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start
}

.obi-ads-admin-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box
}

.obi-ads-admin-panel-wide {
  overflow: auto
}

.obi-ads-admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.obi-ads-slots-table {
  table-layout: auto
}

.obi-ads-slots-table td,
.obi-ads-slots-table th {
  vertical-align: middle
}

.obi-ads-table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.obi-ads-table-actions form {
  margin: 0
}

.obi-ads-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600
}

.obi-ads-status-active {
  background: #e7f7ef;
  color: #0f5132
}

.obi-ads-status-inactive {
  background: #f8e9e3;
  color: #8a3d22
}

.obi-ads-slot-form {
  display: block
}

.obi-ads-slot-form .form-table {
  width: 100%;
  table-layout: fixed
}

.obi-ads-slot-form .form-table th,
.obi-ads-slot-form .form-table td {
  display: block;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box
}

.obi-ads-slot-form .form-table th {
  padding-bottom: 6px
}

.obi-ads-slot-form .form-table td {
  padding-top: 0;
  padding-bottom: 16px
}

.obi-ads-field,
.obi-ads-slot-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

.obi-ads-slot-form .description {
  max-width: none
}

.obi-ads-shortcode-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px dashed #d1c5b4;
  border-radius: 10px;
  background: #fbf7f1;
  overflow: auto
}

.obi-ads-shortcode-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6f614d
}

@media (max-width:960px) {
  .obi-ads-admin-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:782px) {
  .obi-ads-consent-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none
  }
}