/* APM Product Page Polish v0.4.0 */
.single-product .apm-original-email-friend-hidden,
.single-product .apm-original-email-row-hidden,
.single-product .apm-hide-customize-ai,
.single-product .apm-quick-overview-original-hidden,
.apm-hide-customize-ai {
  display: none !important;
}

.single-product .apm-email-share-panel {
  display: none;
  margin: .6rem 0 .8rem;
  padding: .7rem;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.single-product .apm-email-share-panel.is-open {
  display: block;
}

.single-product .apm-review-link-normalized {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin: .25rem 0 .35rem;
  text-decoration: none;
}

.single-product .apm-share-icon {
  display: inline-block;
  line-height: 1;
}

.single-product .apm-email-share-panel a,
.single-product .apm-product-share-row a,
.single-product .apm-email-share-panel button,
.single-product .apm-product-share-row button {
  display: inline-block;
  margin: .25rem .35rem .25rem 0;
  padding: .42rem .62rem;
  border: 1px solid #d0dce8;
  border-radius: 999px;
  background: #fff;
  color: #064c78;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.single-product .apm-email-share-panel a:hover,
.single-product .apm-product-share-row a:hover,
.single-product .apm-email-share-panel button:hover,
.single-product .apm-product-share-row button:hover {
  text-decoration: none;
  background: #eef6fb;
}

.single-product .apm-product-share-row {
  margin: .75rem 0 1rem;
  padding: .75rem 0 0;
  border-top: 1px solid #e6edf4;
}

.single-product .apm-product-share-row strong {
  display: block;
  margin-bottom: .35rem;
  color: #073b5f;
}

.single-product .apm-price-guarantee-block,
.single-product .apm-price-guarantee-link {
  text-align: center !important;
}

.single-product .apm-price-guarantee-block {
  display: block;
  width: 100%;
  margin: .85rem auto 1rem;
  padding: .8rem 1rem;
  border: 1px solid #f0c15a;
  border-radius: 10px;
  background: #fff1c7;
  color: #073b5f;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 38, 77, .05);
}

.single-product .apm-price-guarantee-block a,
.single-product a.apm-price-guarantee-link {
  display: inline-block;
  text-align: center !important;
  color: #064c78;
  font-weight: 700;
}

.single-product .apm-quick-overview-short {
  margin: .55rem 0 .8rem;
  line-height: 1.55;
}

.single-product .apm-quick-overview-more {
  display: inline-block;
  margin-left: .15rem;
  color: #064c78;
  font-weight: 700;
  text-decoration: underline;
}

.apm-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.apm-modal.is-open {
  display: flex;
}

.apm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 23, 42, .55);
}

.apm-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #dbe5ee;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 23, 42, .28);
}

.apm-modal-dialog h2 {
  margin-top: 0;
  color: #073b5f;
}

.apm-modal-close {
  position: absolute;
  top: .55rem;
  right: .65rem;
  border: 0;
  background: transparent;
  color: #073b5f;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.apm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

html.apm-modal-open,
html.apm-modal-open body {
  overflow: hidden;
}

.apm-plan-help-forms,
.apm-plan-help-forms-fallback-wrap .apm-plan-help-forms {
  clear: both;
  max-width: 980px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  background: #f8fbfd;
}

.apm-plan-help-forms h2 {
  margin-top: 0;
}

.apm-plan-help-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.apm-plan-help-tab {
  display: inline-block;
  padding: .6rem .85rem;
  border: 1px solid #d0dce8;
  border-radius: 999px;
  background: #fff;
  color: #064c78;
  font-weight: 700;
  text-decoration: none;
}

.apm-plan-help-tab.is-active {
  background: #064c78;
  color: #fff;
}

.apm-plan-help-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.apm-plan-help-form {
  padding: 1rem;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: #fff;
}

.apm-plan-help-form.is-active {
  border-color: #f26a21;
  box-shadow: 0 4px 16px rgba(242, 106, 33, .16);
}

.apm-plan-help-form h3 {
  margin-top: 0;
}

.apm-form-row {
  margin-bottom: .85rem;
}

.apm-form-row label {
  display: block;
  margin-bottom: .25rem;
  font-weight: 700;
}

.apm-form-row input,
.apm-form-row textarea {
  width: 100%;
  max-width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #b9c8d6;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.apm-submit-button,
.apm-button {
  display: inline-block;
  padding: .72rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #f26a21;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.apm-button-secondary {
  background: #064c78;
}

.apm-form-message {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.apm-form-message-success {
  border: 1px solid #a8d8b6;
  background: #eefaf1;
  color: #1d6a35;
}

.apm-form-message-error {
  border: 1px solid #e4a2a2;
  background: #fff3f3;
  color: #9b1c1c;
}

.apm-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 780px) {
  .apm-plan-help-form-grid {
    grid-template-columns: 1fr;
  }

  .apm-modal-dialog {
    padding: 1.25rem;
  }
}
