/* =====================================================================
   ARTBEAT JEWELS — PAGINA'S
   Enkel op gewone pagina's (niet de homepage): retourformulier, affiliate-pagina's, cadeaubonpagina, hartslagpagina.
   Geladen via functions.php (blok "Eigen CSS per paginatype").
   Dit bestand wordt NA abj-algemeen.css geladen.
   ===================================================================== */

.wt_gc_gift_card_product_page_title {
  display: none;
}

body.page-id-30 .entry-title {
  display: none !important;
}

#custom_agreement_field label,
#hartslag_agreement_field label,
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  font-family: "Lato", sans-serif !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  #custom_agreement_field label,
  #hartslag_agreement_field label,
  .woocommerce-checkout .woocommerce-form__label-for-checkbox {
    font-size: 14px !important;
  }

}

.page-id-5996 .ast-above-header-wrap,
.page-id-5996 .ast-main-header-wrap,
.page-id-5996 #tidio-chat,
.page-id-5996 .site-footer {
  display: none !important;
}

/*adjust the layout of the dimensions table*/
/* Styles only apply within the #hartslagDimensions container */
#hartslagDimensions table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Lato";
  font-size: 16px;
  border-radius: 5px; /* keep rounded corners */
  overflow: hidden;
  border: none;
  box-shadow: 0 0 0 1px; /* remove outer border */
}

/* Remove all borders by default */
#hartslagDimensions th,
#hartslagDimensions td {
  border: none !important;
  padding: 8px;
  text-align: center;
}

/* Header cells: only show bottom border */
#hartslagDimensions thead th,
#size-chart-container table th {
  background-color: #f3f3f3;
  border-bottom: 1px solid #1e1e1e !important;
}

/* Second row (the “Width” row): show bottom border */
#hartslagDimensions tbody tr:first-child th,
#hartslagDimensions tbody tr:first-child td {
  border-bottom: 1px solid #1e1e1e !important;
}

/*affiliate registration form*/
.page-id-7482 .entry-title,
.page-id-7481 .entry-title,
.page-id-7839 .entry-title,
.page-id-7851 .entry-title,
.page-id-11292 .entry-title {
  display: none;
}

.page-id-84 .entry-title {
  text-align: center;
  margin-bottom: 60px;
}

.page-id-7482 .slicewp-field-label-wrapper * {
  font-family: "Lato";
  font-size: 16px;
  font-weight: 400;
}

.page-id-7482 .slicewp-field-label-wrapper {
  margin-bottom:5px;
}

.slicewp-field-label-wrapper a {
  text-decoration: none !important;
  margin-left: 10px !important;
  font-weight: 400 !important;
}

.slicewp-button-primary {
  font-size: 18px;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 50px;
}

.slicewp-lost-password {
  margin-bottom:50px;
}

.wt_gc_gift_card_product_page_form_item label {
  font-size: 16px !important;
  color: #E03131 !important;
  margin-bottom: 25px !important;
}

.wt_gc_credit_denominations .woocommerce-Price-amount.amount {
  padding: 10px;
}

.wt_gc_credit_denominations .wt_gc_credit_denomination {
  margin-bottom: 10px;
}

.wt_gc_credit_denominations {
  margin-bottom: 25px;
}

.wt_gc_email_wrapper img {
  border-radius: 5px !important;
}

.wt_gc_email_wrapper tr {
  display: none !important;
}

.wt_gc_gift_card_product_page_form label {
  color: #E03131 !important;
}

/* Giftcard page intro text */
.abj-giftcard-intro {
  text-align: center;
}

.abj-giftcard-title {
  font-size: 35px;
  color: #E03131;
  font-weight: 400;
  margin-bottom: 10px;
}

.abj-giftcard-text {
  color: #1e1e1e;
}

.hartslag-desktop-flex {
  display: flex !important;
  align-items: center !important;   /* vertically center QR against text */
  justify-content: space-between;   /* text left, QR right */
  gap: 25px;
  width: 100%;
}

.hartslag-desktop-text {
  flex: 1;
  margin-top: -10px;
}

.hartslag-desktop-qr {
  flex: 0 0 auto;
  display: flex;
  align-items: center;   /* center the img within its own cell too */
}

.hartslag-desktop-qr img {
  width: 110px !important;
  display: block;
}

.hartslag-step4-label {
  font-family: "Lato", sans-serif;
  font-size: 16px !important;
  font-weight: 400;
  color: #1e1e1e;
  margin-bottom: 10px;
}

.hartslag-or-label {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  color: #1e1e1e;
  text-align: center;
  margin: 15px 0;
}

/* Smaller QR */
.hartslag-desktop-qr img {
  width: 110px !important;   /* was 150px — lower this further if needed */
  display: block;
  padding-bottom: 25px !important;
}

/* Upload result row: image + remove button side by side */
#hartslag-upload-result {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 0px;
  margin-bottom: 35px;
}

#hartslag-upload-clear:hover {
  background-color: #F9D5D3;
}

/* Disabled state for the upload button after one image is uploaded */
.hartslag-upload-btn-disabled {
  opacity: 0.5;
  pointer-events: none;   /* blocks the label click — this enforces "only 1 image" */
  cursor: not-allowed;
}

/* Preview wrapper so the × can sit over the image corner */
.hartslag-upload-preview-wrap {
  position: relative;
  display: inline-block;
  margin-top: 0px;
}

.hartslag-upload-remove-x:hover {
  background-color: white;
  color: #1e1e1e;
}

#hartslag-upload-clear:hover {
  background-color: #FFF8F8;
  color: #1e1e1e;
}

.mysite-return-form__notice {
  margin-top: 12px;
  font-size: 13px;
  color: #747474;
}

.mysite-return-overlay,
.mysite-return-modal {
  display: none;
}

.mysite-return-overlay.is-open,
.mysite-return-modal.is-open {
  display: block;
}

.mysite-return-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
}

.mysite-return-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mysite-return-item input:disabled + * ,
.mysite-return-item input:disabled {
  opacity: 0.5;
}

.mysite-return-item__note {
  font-size: 13px;
  color: #E03131;
}

.mysite-return-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.mysite-return-form h2 {
  margin-bottom: 16px;
}

.mysite-return-form p {
  margin-bottom: 32px; color: #555;
}

.mysite-return-form__field {
  text-align: left; margin-bottom: 20px;
}

.mysite-return-form__field label {
  display: block; margin-bottom: 6px; font-weight: 600;
}

#mysite-return-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
}

#mysite-return-message {
  margin-top: 16px; font-size: 14px;
}

table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dd.variation-Jouwgeuploadehartslag {
  display: block !important;
  float: none !important;
  clear: left !important;
  width: 100% !important;
  margin: 4px 0 0 0 !important;
}

table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dd.variation-Jouwgeuploadehartslag img {
  display: inline-block !important;
  margin-top: 8px !important;
}

.abj-hartslag-detect .hartslag-desktop-flex {
  align-items: center;
}

.abj-hartslag-detect .abj-field-label {
  margin-bottom: 8px;
}

.abj-hartslag-detect .hartslag-desktop-qr img {
  border-radius: 5px;
}

.abj-options-accordion__body, .abj-hartslag-panel-box {
  background-color: #FFF8F8;
}

/* ---- Retourplatform: items als tegels in één rij, met slider ---- */
.mysite-return-modal {
  box-sizing: border-box;
}

.mysite-return-slider {
  position: relative;
  margin-bottom: 20px;
}

.mysite-return-modal .mysite-return-modal__body {
  display: flex;
  gap: 12px;                    /* = TILE_GAP in de JS */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;        /* scrollbalk verbergen (Firefox) */
}

.mysite-return-modal .mysite-return-modal__body::-webkit-scrollbar {
  display: none;
}

/* Minder producten dan de breedte? Dan netjes in het midden */
.mysite-return-modal .mysite-return-modal__body > :first-child {
  margin-left: auto;
}

.mysite-return-modal .mysite-return-modal__body > :last-child {
  margin-right: auto;
}

.mysite-return-modal .mysite-return-item {
  position: relative;
  flex: 0 0 250px;              /* = TILE_W in de JS */
  box-sizing: border-box;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1e1e1e;
  transition: border-color .15s ease, background-color .15s ease;
}

.mysite-return-modal .mysite-return-item:hover {
  border-color: #E03131;
}

.mysite-return-modal .mysite-return-item.is-selected {
  border-color: #E03131;
  background: #fef2f2;
}

/* Selectievakje onzichtbaar, maar bruikbaar met het toetsenbord */
.mysite-return-modal .mysite-return-item__check {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Focusrand enkel bij toetsenbordnavigatie, niet na een muisklik */
.mysite-return-modal .mysite-return-item:has(.mysite-return-item__check:focus-visible) {
  outline: 2px solid #E03131;
  outline-offset: 2px;
}

.mysite-return-modal .mysite-return-item__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

.mysite-return-modal .mysite-return-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mysite-return-modal .mysite-return-item__note {
  font-size: 12px;
  color: #E03131;
}

.mysite-return-modal .mysite-return-item.is-disabled {
  cursor: not-allowed;
  opacity: .5;
}

.mysite-return-modal .mysite-return-item.is-disabled:hover {
  border-color: #e5e5e5;
}

/* Pijltjes — enkel zichtbaar als er meer producten zijn dan er passen */
.mysite-return-slider__arrow,
.mysite-return-slider__arrow:hover,
.mysite-return-slider__arrow:focus {
  position: absolute;
  top: 125px;                    /* midden van de productfoto */
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #1e1e1e !important;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  cursor: pointer;
}

.mysite-return-slider__arrow.is-visible {
  display: flex;
}

.mysite-return-slider__arrow.is-prev {
  left: -18px;
}

.mysite-return-slider__arrow.is-next {
  right: -18px;
}

/* Retourformulier: e-mailveld links uitlijnen zoals het bestelnummer
   (overschrijft de gecentreerde MailPoet-regel bovenaan) */
.mysite-return-form__field input {
  text-align: left !important;
}

/* Beleidstekst onder de retourknop in de pop-up */
.mysite-return-modal__notice {
  text-align: center;
  margin: 12px 0 0;
}

/* Sluitknop retour-pop-up: gewoon een 1e1e1e kruisje, geen hover-effect */
.mysite-return-modal__close,
.mysite-return-modal__close:hover,
.mysite-return-modal__close:focus,
.mysite-return-modal__close:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #1e1e1e !important;
  outline: none !important;
}
