/*
 * DISCLAIMER
 *
 * Do not edit or add to this file.
 * You are not authorized to modify, copy or redistribute this file.
 * Permissions are reserved by FME Modules.
 *
 *  @author    FMM Modules
 *  @copyright FME Modules 2021
 *  @license   Single domain
 */
/***********************************************************
					Stores Detail Page Styles
************************************************************/
#fmmsl_single_store_content { padding: 20px 0}

#fmmsl_single_store_content img { max-width: 100%;}

#fmmsl_single_store_content .fmmsl_subwrap { padding: 3%; background: #f0f0f0;}

#fmmsl_single_store_maparea { clear: both; padding: 15px 0}

#fmmsl_single_store_maparea .fmmsl_store_hours_details .fmmsl_wh_wrap { padding: 3%; border: 3px solid #f0f0f0}

#fmmsl_single_store_maparea table { width: 100%;}

#fmmsl_single_store_maparea table tr td { padding: 8px 0;}

.ps_onesix_specific table tr td { padding: 5px 0 !important;}

#store_single_map { min-height: 310px; height: 100%;}

#fmmsl_single_store_productarea { padding-top: 20px; padding-bottom: 20px;}

#fmmsl_single_store_productarea .fmmsl_subwrap { padding: 3%; background: #f0f0f0;}

#fmmsl_single_store_productarea .owl-carousel img {max-width:100%;}

#fmmsl_single_store_productarea .owl-carousel h5 { clear: both; font-size: 14px; padding: 3% 2% 0;}

/*--------- Scroller CSS ----------*/
.owl-carousel {
  display: none;
  text-align: center;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  /* position relative and z-index fix webkit rendering fonts issue */
  position: relative;
  z-index: 1; padding-top: 20px; }
  .owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
    /* fix firefox animation glitch */ }
  .owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0; }
  .owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    /* fix for flashing background */
    -webkit-transform: translate3d(0px, 0px, 0px); }
  .owl-carousel .owl-wrapper,
  .owl-carousel .owl-item {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0); }
  .owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    width: 20%;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; }
  .owl-carousel .owl-item img {
    display: block;
    width: 100%; }
  .owl-carousel .owl-nav.disabled,
  .owl-carousel .owl-dots.disabled {
    display: none; }
  .owl-carousel .owl-nav .owl-prev,
  .owl-carousel .owl-nav .owl-next,
  .owl-carousel .owl-dot {
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; }
  .owl-carousel .owl-nav button.owl-prev,
  .owl-carousel .owl-nav button.owl-next,
  .owl-carousel button.owl-dot {
    background: none;
    color: inherit;
    border: none;
    padding: 0 !important;
    font: inherit; }
  .owl-carousel.owl-loaded {
    display: block; }
  .owl-carousel.owl-loading {
    opacity: 0;
    display: block; }
  .owl-carousel.owl-hidden {
    opacity: 0; }
  .owl-carousel.owl-refresh .owl-item {
    visibility: hidden; }
  .owl-carousel.owl-drag .owl-item {
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; }
  .owl-carousel.owl-grab {
    cursor: move;
    cursor: grab; }
  .owl-carousel.owl-rtl {
    direction: rtl; }
  .owl-carousel.owl-rtl .owl-item {
    float: right; }

/* No Js */
.no-js .owl-carousel {
  display: block; }

/*
 *  Owl Carousel - Animate Plugin
 */
.owl-carousel .animated {
  animation-duration: 1000ms;
  animation-fill-mode: both; }

.owl-carousel .owl-animated-in {
  z-index: 0; }

.owl-carousel .owl-animated-out {
  z-index: 1; }

.owl-carousel .fadeOut {
  animation-name: fadeOut; }

@keyframes fadeOut {
  0% {
    opacity: 1; }
  100% {
    opacity: 0; } }

/*
 * 	Owl Carousel - Auto Height Plugin
 */
.owl-height {
  transition: height 500ms ease-in-out; }

/*
 * 	Owl Carousel - Lazy Load Plugin
 */
.owl-carousel .owl-item {
  /**
			This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
			calculation of the height of the owl-item that breaks page layouts
		 */ }
  .owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    transition: opacity 400ms ease; }
  .owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
    max-height: 0; }
  .owl-carousel .owl-item img.owl-lazy {
    transform-style: preserve-3d; }

/*
 * 	Owl Carousel - Video Plugin
 */
.owl-carousel .owl-video-wrapper {
  position: relative;
  height: 100%;
  background: #000; }

.owl-carousel .owl-video-play-icon {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -40px;
  background: url("owl.video.play.png") no-repeat;
  cursor: pointer;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  transition: transform 100ms ease; }

.owl-carousel .owl-video-play-icon:hover {
  -ms-transform: scale(1.3, 1.3);
      transform: scale(1.3, 1.3); }

.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
  display: none; }

.owl-carousel .owl-video-tn {
  opacity: 0;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 400ms ease; }

.owl-carousel .owl-video-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%; }

/* ============================================================
   Degriffstock – Page détail magasin
   ============================================================ */

/* --- En-tête --- */
.dg-detail-header {
  background: #f5f5f5;
  padding: 24px 20px 20px;
  margin-bottom: 20px;
}

.dg-detail-header h1 {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* --- Statut ouvert / fermé --- */
.dg-store-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.dg-store-status .dg-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.dg-store-status.dg-open {
  color: #138046;
}

.dg-store-status.dg-open .dg-status-dot {
  background-color: #138046;
}

.dg-store-status.dg-closed {
  color: #888;
}

.dg-store-status.dg-closed .dg-status-dot {
  background-color: #ccc;
}

/* --- Boutons d'action --- */
.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 70px;
  background-color: #f0008e;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none !important;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  border-right:1px solid #fff;
}

.dg-btn:hover {
  background-color: #c8007a;
  color: #fff !important;
}

.dg-btn svg {
  flex-shrink: 0;
}

.dg-detail-actions {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.dg-btn-outline {
  background-color: #fff !important;
  color: #f0008e !important;
  border: 2px solid #f0008e !important;
}

.dg-btn-outline:hover {
  background-color: #f0008e !important;
  color: #fff !important;
}

/* --- Cartes --- */
.dg-detail-card {
  border: 1px solid #e8e8e8;
  margin-bottom: 20px;
  background: #fff;
}

.dg-detail-card.coordo {
  border:0;
}

/* --- Coordonnées + Carte (grille 50/50) --- */
.dg-detail-coords-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dg-detail-coords {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dg-detail-map-col {
  min-height: 300px;
  padding-top: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
}

.dg-detail-map-col #store_single_map {
  height: 100%;
  min-height: 300px;
}

/* --- Titre de section --- */
.dg-detail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  display: block;
  margin-bottom: 6px;
}

/* --- Adresse --- */
.dg-detail-address {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.dg-detail-phone {
  font-size: 14px;
  color: #000;
  text-decoration: underline;
}

/* --- Horaires + Photo + Présentation (grille) --- */
.dg-detail-hours-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "hours photo"
    "divider photo"
    "presentation photo";
}

.dg-detail-hours-section {
  grid-area: hours;
  padding: 24px 20px 16px;
  border:1px solid #e8e8e8;
}

.dg-detail-photo-section {
  grid-area: photo;
  align-self: start;
}

.dg-detail-divider-el {
  grid-area: divider;
  border-top: 1px solid #e8e8e8;
  margin: 0 20px;
}

.dg-detail-presentation-section {
  grid-area: presentation;
  padding: 20px 20px 24px;
  border:1px solid #e8e8e8;
  margin-right: 15px;
}

.dg-detail-store-photo {
  width: 100%;
  display: block;
}

/* --- Horaires du jour --- */
.dg-detail-today-hours {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 10px;
}

/* --- Toggle horaires --- */
.dg-toggle-hours-detail {
  display: inline-block;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 10px;
}

/* --- Panneau horaires --- */
.dg-hours-panel-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: none !important;
  margin-top: 8px;
}

.dg-hours-panel-detail table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.dg-hours-panel-detail table tbody tr td {
  padding: 8px 0;
  border: none !important;
  background: transparent !important;
  color: #444;
  vertical-align: middle;
}

.dg-hours-panel-detail table tbody tr.dg-today {
  background-color: #f5f5f5 !important;
}

.dg-hours-panel-detail table tbody tr.dg-today td {
  background-color: #f5f5f5 !important;
  font-weight: 600;
  color: #222;
}

/* --- Note / Présentation --- */
.dg-detail-note {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  max-height: 192px;
  overflow: hidden;
  white-space: pre-line;
}

.dg-voir-tout {
  display: inline-block;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 8px;
}

.dg-detail-hours-section{
  margin-right: 15px;
  margin-bottom: 15px;

}

#module-storelocator-storedetails .table-striped tbody tr:nth-of-type(odd){
  background-color: inherit;
}
.dg-hours-panel-detail table tbody tr td:nth-child(2) {
  text-align: right;
}

#module-storelocator-storedetails .gm-style-iw-d{
  line-height: 18px;
}

/* --- Loader carte --- */
.dg-detail-map-col {
  position: relative;
}

#dg-detail-map-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dg-main-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #f0008e;
  border-radius: 50%;
  animation: dg-spin 0.7s linear infinite;
}

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

/* --- Photo loading state --- */
.dg-photo-loading {
  background-color: #e8e8e8;
  min-height: 200px;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .dg-detail-coords-map-row {
    grid-template-columns: 1fr;
  }

  .dg-detail-hours-photo-row {
    display: flex;
    flex-direction: column;
  }

  .dg-detail-hours-section { order: 1; }
  .dg-detail-photo-section  { order: 2; }
  .dg-detail-divider-el     { display: none; }
  .dg-detail-presentation-section { order: 3;  margin-top: 15px; }

  .dg-detail-store-photo {
    max-height: 260px;
    object-position: center;
  }

  .dg-detail-actions .dg-btn {
    flex: 1;
    justify-content: center;
  }
  #module-storelocator-storedetails .p-0{
    padding-left:.625rem!important;
    padding-right:.625rem!important;
  }
  .dg-btn{
    padding: 12px 0;
  }
  .dg-detail-map-col{
    padding: 15px;
  }
  .dg-detail-hours-section,
  .dg-detail-presentation-section{
    margin-right: 0;
  }
  .dg-hours-panel-detail{
    margin: 0 -20px;
  }
  .dg-hours-panel-detail table tbody tr td {
  padding: 8px 20px;
  }
}
