
/* Storefront adds a large margin under the site header; remove it when the banner is placed directly below. */
.sd-banner-anchor,
.site-header.sd-banner-anchor,
header.sd-banner-anchor {
  margin-bottom: 0 !important;
}

.sd-header-banner {
  display: none;
  width: 100%;
  background: var(--sd-banner-bg, #eb8b8b);
  color: var(--sd-banner-text, #ffffff);
  text-align: center;
  position: relative;
  z-index: 20;
}

.sd-header-banner.is-visible {
  display: block;
}

.sd-header-banner__link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.sd-header-banner__inner {
  margin: 0 auto;
  padding: 8px 16px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sd-customiser {
  position: relative;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fafafa;
}

form.cart.sd-awaiting-image .quantity,
form.cart.sd-awaiting-image .single_add_to_cart_button,
form.cart.sd-awaiting-image .woocommerce-variation-add-to-cart .quantity,
form.cart.sd-awaiting-image .woocommerce-variation-add-to-cart button[type="submit"] {
  display: none !important;
}

.sd-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(2px);
}

.sd-loader[hidden] {
  display: none !important;
}

.sd-loader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 340px);
  padding: 1.15rem 1.2rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.sd-loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d9d9d9;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: sd-spin 0.9s linear infinite;
}

.sd-loader__title {
  font-size: 1rem;
}

.sd-loader__hint {
  margin: 0.1rem 0 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.35;
}

.sd-loader__bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 6px;
  margin-top: 0.25rem;
  background: #e5e7eb;
  border-radius: 999px;
}

.sd-loader__bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 42%;
  background: linear-gradient(90deg, #f9c74f, #eb8b8b, #2271b1);
  border-radius: inherit;
  animation: sd-progress 1.15s ease-in-out infinite;
}

.sd-is-busy {
  pointer-events: none;
}

.sd-is-busy .sd-loader {
  pointer-events: auto;
}

@keyframes sd-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sd-progress {
  0% { left: -42%; }
  55% { left: 40%; }
  100% { left: 100%; }
}

.sd-customiser h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.sd-help,
.sd-status {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.95rem;
}

.sd-status {
  color: #a12622;
}

.sd-order-prompt {
  margin: -0.15rem 0 0.9rem;
  color: #333333;
  font-size: 1rem;
  line-height: 1.45;
}

.sd-file-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  cursor: pointer;
}

.sd-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sd-map-preview-button,
.sd-solid-cart-button,
.sd-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  border: 1px solid #111111;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sd-map-preview-button:hover,
.sd-map-preview-button:focus,
.sd-solid-cart-button:hover,
.sd-solid-cart-button:focus,
.sd-file-picker:hover .sd-file-button,
.sd-file-picker:focus-within .sd-file-button {
  background: #2a2a2a;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.24);
  transform: translateY(-1px);
}

.sd-has-image .sd-file-button {
  border-color: #d1d5db;
  background: #ffffff;
  color: #374151;
  box-shadow: none;
}

.sd-has-image .sd-file-picker:hover .sd-file-button,
.sd-has-image .sd-file-picker:focus-within .sd-file-button {
  border-color: #9ca3af;
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
}

.sd-file-name {
  min-width: 0;
  color: #555555;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-top-cart {
  margin: -0.2rem 0 1rem;
}

.sd-top-cart[hidden] {
  display: none !important;
}

.sd-top-cart-button,
.sd-top-cart-button.button,
.sd-top-cart-button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 180px;
  padding: 0.75rem 1.35rem;
  border: 1px solid #c89b3c;
  border-radius: 999px;
  background: #c89b3c;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(200, 155, 60, 0.28);
}

.sd-top-cart-button:hover,
.sd-top-cart-button:focus {
  border-color: #b7892f;
  background: #b7892f;
  color: #ffffff;
}

.sd-stage-wrap {
  --sd-image-width: 320px;
  --sd-image-height: 320px;
  --sd-crop-height: 260px;
  --sd-crop-width: 260px;
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 240px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #f3f4f6;
  touch-action: none;
  cursor: grab;
}

.sd-stage-wrap:active,
.sd-stage-wrap.sd-is-dragging {
  cursor: grabbing;
}

.sd-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sd-image-width);
  height: var(--sd-image-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.sd-image {
  display: block;
  width: var(--sd-image-width);
  height: var(--sd-image-height);
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
  object-fit: contain;
}

.sd-crop-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sd-crop-width);
  height: var(--sd-crop-height);
  border: 3px solid #ffffff;
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.82), 0 0 0 9999px rgba(0,0,0,0.20), 0 4px 16px rgba(0,0,0,0.22);
  pointer-events: none;
  transform: translate(-50%, -50%) translate(var(--sd-crop-x, 0px), var(--sd-crop-y, 0px));
}

.sd-crop-frame span {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.sd-position-help {
  max-width: 520px;
  margin: 0.25rem 0 0.55rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid #c7d2fe;
  border-radius: 9px;
  background: #eef2ff;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.35;
}

.sd-drag-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sd-drag-hint__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  animation: sd-drag-nudge 1.25s ease-in-out infinite;
}

.sd-user-positioned .sd-drag-hint,
.sd-is-dragging .sd-drag-hint {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

@keyframes sd-drag-nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

.sd-resize-handle {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #111111;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.24);
  pointer-events: auto;
  touch-action: none;
}

.sd-resize-handle--nw { left: -12px; top: -12px; cursor: nwse-resize; }
.sd-resize-handle--ne { right: -12px; top: -12px; cursor: nesw-resize; }
.sd-resize-handle--se { right: -12px; bottom: -12px; cursor: nwse-resize; }
.sd-resize-handle--sw { left: -12px; bottom: -12px; cursor: nesw-resize; }

.sd-stage-wrap.sd-is-resizing,
.sd-stage-wrap.sd-is-resizing * {
  cursor: inherit;
}

.sd-selection-preview {
  max-width: 520px;
  margin: -0.35rem 0 1rem;
}

.sd-selection-preview strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #374151;
  font-size: 0.95rem;
}

.sd-selection-preview__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
}

.sd-selection-preview__image {
  display: block;
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.sd-selection-preview__mockup {
  position: relative;
  max-width: 100%;
  width: 360px;
}

.sd-selection-preview__mockup-photo {
  position: absolute;
  overflow: hidden;
  background: #ffffff;
}

.sd-selection-preview__mockup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-selection-preview__mockup-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.sd-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: -0.15rem 0 0.1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.sd-filter-toggle input {
  margin: 0;
}

.sd-filter-bw .sd-image {
  filter: grayscale(1);
}

.sd-filter-bw .sd-selection-preview__image,
.sd-filter-bw .sd-selection-preview__mockup-photo img {
  filter: grayscale(1);
}

.sd-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.sd-controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.sd-controls .button {
  min-height: 42px;
  padding: 0.65rem 1.05rem;
  border: 1px solid #006272;
  border-radius: 4px;
  background: #006272;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sd-controls .button:hover,
.sd-controls .button:focus {
  background: #004f5c;
  border-color: #004f5c;
  color: #ffffff;
  transform: translateY(-1px);
}

.sd-frame-toggle:not(.is-active) {
  background: #ffffff;
  color: #006272;
}

.sd-frame-toggle:not(.is-active):hover,
.sd-frame-toggle:not(.is-active):focus {
  background: #e6f3f5;
  border-color: #006272;
  color: #006272;
}

.sd-button-icon {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.sd-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  width: 100%;
}

.sd-controls-row--orientation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-zoom {
  width: 100%;
}

@media (max-width: 640px) {
  .sd-customiser {
    padding: 0.85rem;
  }

  .sd-stage-wrap {
    --sd-frame-gutter: 26px;
  }

  .sd-controls-row {
    align-items: stretch;
  }

  .sd-controls-row--zoom {
    display: flex;
  }

  .sd-controls-row--orientation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-controls .button {
    width: 100%;
    min-width: 0;
  }
}

.sd-map-panel {
  margin: 1rem 0;
}

.sd-map-panel label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.sd-map-address {
  width: 100%;
  max-width: 680px;
}

.sd-customiser[data-sd-design-mode="preset"] .sd-order-prompt {
  display: none;
}

.sd-map-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.sd-map-options label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 700;
}

.sd-map-preview {
  position: relative;
  margin-top: 1rem;
  max-width: 520px;
  aspect-ratio: var(--sd-map-ratio, 1 / 1);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.sd-map-preview-image {
  position: absolute;
  display: block;
  object-fit: cover;
  z-index: 1;
}

.sd-map-preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: fill;
  z-index: 2;
}


.sd-design-audience-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}

.sd-design-audience-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0.72rem 1.15rem;
  border: 1px solid #d8d2c6;
  border-radius: 999px;
  background: #fffaf2;
  color: #171717 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 5px 16px rgba(0,0,0,0.06);
}

.sd-design-audience-nav__link:hover,
.sd-design-audience-nav__link:focus,
.sd-design-audience-nav__link.is-active {
  border-color: #9a8f7b;
  background: #171717;
  color: #ffffff !important;
}

/* Design tiles shortcode uses Storefront/WooCommerce loop markup. */
.sd-design-tiles--storefront {
  margin-top: 1.5rem;
}

.sd-design-tiles--storefront .sd-design-tile .button {
  margin-top: 0.5rem;
}


.sd-design-tiles--storefront .woocommerce-loop-product__title {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  align-items: center;
  margin-top: 0.9rem;
  margin-bottom: 0.45rem;
  min-height: 3.2rem;
  text-align: center;
}

.sd-design-tile__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a8f7b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.sd-design-tile__name {
  display: block;
  color: #171717;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.12;
}


@media (max-width: 640px) {
  .sd-design-tiles--storefront .woocommerce-loop-product__title {
    gap: 0.36rem;
    margin-top: 1.15rem;
    margin-bottom: 0.7rem;
    min-height: 4.35rem;
  }

  .sd-design-tile__brand {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
  }

  .sd-design-tile__name {
    font-size: clamp(1.75rem, 7.2vw, 2.15rem);
    line-height: 1.08;
  }
}

.sd-design-tiles--storefront .sd-design-tile .button,
.sd-map-preview-button,
.sd-file-button,
.sd-top-cart-button {
  border-radius: 999px;
}

.sd-map-suggestions {
  width: 100%;
  max-width: 520px;
  margin-top: 0.35rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.sd-map-suggestion {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #111;
  min-width: 0;
  overflow: visible;
  text-align: left;
  line-height: 1.18;
  white-space: normal;
  cursor: pointer;
}

.sd-map-suggestion:hover,
.sd-map-suggestion:focus {
  background: #f7f7f7;
  color: #111;
}

.sd-map-attribution {
  max-width: 520px;
  margin: 0.35rem 0 0;
  color: #777;
  font-size: 0.72rem;
  line-height: 1.2;
}

body.sd-map-modal-open {
  overflow: hidden;
}

.sd-map-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
}

.sd-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.sd-map-modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1120px);
  max-height: 94vh;
  margin: 3vh auto;
  padding: 1.25rem;
  overflow: auto;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
}

.sd-map-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.sd-map-modal__summary {
  margin: -0.25rem 2rem 0.85rem 0;
  color: #555;
  font-size: 0.92rem;
}

.sd-map-modal__preview {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sd-map-ratio, 1 / 1);
  overflow: hidden;
  border-radius: 0;
  background: #f5f5f5;
}

.sd-map-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-map-modal__attribution {
  margin: 0.4rem 0 0;
  color: #777;
  font-size: 0.75rem;
}

.sd-map-modal__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sd-map-modal__actions--top {
  margin-top: 0;
  margin-bottom: 1rem;
}

.sd-map-modal__actions .button {
  border-radius: 999px;
  text-align: center;
  white-space: normal;
}

@media (max-width: 768px) {
  .sd-map-modal__panel {
    width: 96vw;
    max-height: 96vh;
    margin: 2vh auto;
    padding: 1rem;
    border-radius: 0;
  }

  .sd-map-modal__actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .sd-map-modal__actions .button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0.8rem 1rem !important;
    line-height: 1.25 !important;
    white-space: nowrap;
  }
}


/* Keep WooCommerce notice action buttons readable on mobile. */
@media (max-width: 768px) {
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error,
  .woocommerce-noreviews,
  p.no-comments {
    display: block !important;
    overflow: hidden;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button {
    float: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0.75rem 1rem !important;
    clear: both !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}




body.sd-saved-map-modal-open {
  overflow: hidden;
}

.sd-saved-map-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.sd-saved-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.sd-saved-map-modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1120px);
  max-height: 94vh;
  margin: 3vh auto;
  padding: 1.25rem;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
}

.sd-saved-map-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.sd-saved-map-modal__preview {
  margin-top: 0.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
}

.sd-saved-map-modal__image {
  display: block;
  width: 100%;
  height: auto;
}

.sd-saved-map-modal__attribution {
  margin: 0.4rem 0 0;
  color: #777;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .sd-saved-map-modal__panel {
    width: 96vw;
    max-height: 96vh;
    margin: 2vh auto;
    padding: 1rem;
    border-radius: 14px;
  }
}

.sd-map-approved-actions[hidden] {
  display: none !important;
}

.sd-map-approved-actions {
  margin-top: 0.35rem;
}

.sd-map-change-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2c6fbb;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: underline;
  cursor: pointer;
}

.sd-map-change-link:hover,
.sd-map-change-link:focus {
  color: #174f8d;
  background: transparent;
  text-decoration: none;
}


/* Match map CTA to the upload CTA, overriding WooCommerce theme .button styles. */
.sd-customiser .sd-map-preview-button.button,
.sd-customiser button.sd-map-preview-button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0.65rem 1.1rem !important;
  border: 1px solid #111111 !important;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.18) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
}

.sd-customiser .sd-map-preview-button.button:hover,
.sd-customiser .sd-map-preview-button.button:focus,
.sd-customiser button.sd-map-preview-button.button:hover,
.sd-customiser button.sd-map-preview-button.button:focus {
  background: #2a2a2a !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.24) !important;
  transform: translateY(-1px) !important;
}


.sd-map-zoom-control {
  gap: 0.45rem;
}

.sd-map-zoom-control span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.sd-map-zoom-value {
  color: #666;
  font-weight: 600;
}

.sd-map-zoom-control input[type=range] {
  width: 100%;
  min-height: 32px;
  padding: 0;
}


.sd-map-modal__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.sd-map-modal__controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
}

.sd-map-modal__controls select,
.sd-map-modal__controls input[type=range] {
  width: 100%;
}

@media (max-width: 768px) {
  .sd-map-modal__controls {
    grid-template-columns: 1fr;
  }
}


.sd-map-address-label {
  font-size: 1rem;
  font-weight: 800;
}

.sd-map-address {
  border-width: 2px;
}


.sd-customiser .sd-map-controls .sd-map-preview-button {
  display: inline-flex !important;
  margin-top: 1rem !important;
}

.sd-customiser .sd-map-controls .sd-map-preview-button::before {
  content: none;
}


.sd-solid-panel {
  margin: 1rem 0;
}

.sd-solid-colour-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.sd-solid-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sd-solid-colour {
  width: 64px;
  height: 44px;
  padding: 2px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
}

.sd-solid-colour-text {
  width: 110px;
  min-height: 42px;
  font-family: monospace;
  text-transform: uppercase;
}

.sd-solid-preview {
  max-width: 520px;
  margin: 0 0 1rem;
}

.sd-solid-preview strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #374151;
  font-size: 0.95rem;
}

.sd-solid-preview__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
}

.sd-solid-preview__swatch {
  width: min(100%, 360px);
  aspect-ratio: var(--sd-map-ratio, 1 / 1);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.sd-solid-preview__mockup-photo {
  min-height: 20px;
}

.sd-solid-actions {
  margin: -0.2rem 0 1rem;
}

.sd-solid-swatches {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.sd-solid-swatches legend {
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.sd-solid-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  max-width: 520px;
}

.sd-solid-swatch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  min-width: 0;
  overflow: visible;
  text-align: left;
  line-height: 1.18;
  white-space: normal;
  cursor: pointer;
}

.sd-solid-swatch span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17,17,17,0.22);
  border-radius: 999px;
  background: var(--sd-swatch);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.sd-solid-swatch:hover,
.sd-solid-swatch:focus {
  border-color: #9ca3af;
  background: #f9fafb;
  color: #111827 !important;
}

.sd-solid-swatch.is-selected {
  border-color: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156,163,175,0.18);
}

.sd-solid-advanced {
  max-width: 520px;
  margin: -0.25rem 0 1rem;
}

.sd-solid-advanced summary {
  color: #4b5563;
  font-weight: 700;
  cursor: pointer;
}

.sd-solid-advanced .sd-solid-controls {
  margin-top: 0.7rem;
}


/* Solid colour uses the standard WooCommerce add-to-cart button only. */
.sd-solid-actions {
  display: none !important;
}

.sd-solid-preview[hidden],
.sd-solid-preview__frame[hidden] {
  display: none !important;
}


.sd-design-tile__image-wrap {
  position: relative;
  display: block;
}


.sd-design-tile__action-overlay,
.sd-design-tile__upload-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(17,17,17,0.76);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  backdrop-filter: blur(5px);
}

.sd-design-tile__action-icon,
.sd-design-tile__upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  font-size: 1.05rem;
  line-height: 1;
}


.sd-design-tile__map-overlay {
  background: rgba(20, 46, 56, 0.8);
  border-color: rgba(199, 239, 229, 0.78);
}

.sd-design-tile__map-icon {
  color: #142e38;
}

.sd-design-tile__action-copy,
.sd-design-tile__upload-copy {
  font-size: clamp(0.78rem, 2.2vw, 0.98rem);
  line-height: 1;
}

@media (max-width: 640px) {
  .sd-design-tile__action-overlay,
.sd-design-tile__upload-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0.72rem 0.75rem;
  }
}

.sd-design-tile__swatches {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(5px);
}

.sd-design-tile__swatch {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 10px;
  background: var(--sd-tile-swatch);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

@media (max-width: 640px) {
  .sd-design-tile__swatch {
    min-height: 28px;
  }
}



.single-product .summary .product_title.sd-product-title,
.single-product .product_title.sd-product-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.sd-product-title__brand {
  display: block;
  color: #9a8f7b;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.sd-product-title__name {
  display: block;
  color: #171717;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.08;
}


.sd-design-tiles--storefront .woocommerce-LoopProduct-link:hover .sd-design-tile__brand,
.sd-design-tiles--storefront .woocommerce-LoopProduct-link:focus .sd-design-tile__brand {
  color: #9a8f7b !important;
}

.sd-design-tiles--storefront .woocommerce-LoopProduct-link:hover .sd-design-tile__name,
.sd-design-tiles--storefront .woocommerce-LoopProduct-link:focus .sd-design-tile__name {
  color: #171717 !important;
}


@media (max-width: 760px) {
  .sd-solid-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .sd-solid-swatch {
    align-items: center;
    min-height: 54px;
    padding: 0.6rem 0.55rem;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width: 360px) {
  .sd-solid-swatch {
    gap: 0.42rem;
    font-size: 0.84rem;
  }

  .sd-solid-swatch span {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}
