/* SINGEL NEW */
.giftbox-complete-step{
  background:#faf8fd;
  border:1px solid #ece8f6;
  border-radius:8px;
  padding:20px;
  margin-top:20px;
}

.giftbox-step-header{
  text-align:center;
}

.giftbox-step-header h2{
  font-size: 18px;
}

.extra-product-fields .form-row{
  margin:0px !important;
}

#sticky-action{
  bottom:100px;
  z-index: 9;
  width: 42px;
  height: 42px;
  padding:10px;
  background:#25D366;
  border-radius: 100%;
}

#sticky-action a{
  padding:0px;
}

#sticky-action img{
  width: 100%;
  height: auto;
}

.woocommerce form .form-row{
  
}

/* ==========================================================
   GRID
========================================================== */
.giftbox-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
    gap: 40px;
    align-items: start;
    margin-top:20px;
}

.giftbox-product-left {
    position: sticky;
    bottom: 20px;
    align-self: end;
}

.giftbox-product-right {
    min-width: 0;
}

.woocommerce-product-gallery{
  width: 100%;
}

.woocommerce-product-gallery img{
  width: 100%;
}

/* ==========================================================
   SLIDER
========================================================== */
.giftbox-complete-preview{
  position:relative;
  height:250px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #ece8f6;
  border-radius:18px;
  padding:25px;
  overflow:hidden;
  margin-bottom:10px;
}

#giftbox-complete-preview-image{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.giftbox-complete-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:#fff;
  color:#8b63ff;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
  cursor:pointer;
  transition:.2s;
  display:flex;
  align-items:center;
  justify-content:center;
}

.giftbox-complete-arrow:hover{
  transform:translateY(-50%) scale(1.08);
  background:#8b63ff;
  color:#fff;
}

.giftbox-complete-arrow.prev{
  left:15px;
}

.giftbox-complete-arrow.next{
  right:15px;
}

.giftbox-complete-thumbnails{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:5px;
  scrollbar-width:none;
}

.giftbox-complete-thumbnails::-webkit-scrollbar{
  display:none;
}

.giftbox-complete-thumb{
  width:82px;
  height:82px;
  flex-shrink:0;
  border:2px solid #ece8f6;
  border-radius:12px;
  background:#fff;
  padding:4px;
  cursor:pointer;
  transition:.2s;
}

.giftbox-complete-thumb:hover{
  border-color:#c8b4ff;
}

.giftbox-complete-thumb.active{
  border-color:#8b63ff;
}

.giftbox-complete-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}

/* ==========================================================
   TEKSTVELD
========================================================== */

#card-text{
  width:100%;
  min-height:240px;
  padding:22px;
  border-radius:16px;
  border:1px solid #ddd;
  resize:vertical;
  font-size:17px;
  font-family:inherit;
  line-height:1.7;
  transition:.2s;
}

#card-text:focus{
  outline:none;
  border-color:#8856ff;
  box-shadow:0 0 0 4px rgba(136,86,255,.12);
}

.message-meta{
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  color:#888;
  font-size:14px;
}
.giftbox-complete-extras-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.giftbox-complete-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-sizing: border-box;
}

.giftbox-complete-extra-image {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f5fa;
}

.giftbox-complete-extra-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.giftbox-complete-extra-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 15px;
}

.giftbox-complete-extra-content h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #333;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.giftbox-complete-extra-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.giftbox-complete-extra-bottom .price {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.giftbox-complete-add {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #8b5cf6;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: .2s ease;
}

.giftbox-complete-add:hover {
    transform: scale(1.05);
}

.giftbox-complete-extra-active{
  border-color:#7c5cff;
  box-shadow:0 10px 30px rgba(124,92,255,.18);
  transform:translateY(-2px);
}

.giftbox-complete-extra-active .giftbox-complete-add{
  background:#6b4df6;
}


#giftbox-sticky-cart{
  position:fixed;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:min(1000px,calc(100% - 30px));
  padding:14px 20px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid #ece8f6;
  border-radius:18px;
  box-shadow:0 12px 35px rgba(0,0,0,.12);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  z-index:97;
}

.giftbox-sticky-left{
  display:flex;
  align-items:center;
  gap:16px;
  flex:1;
  min-width:0;
}

#giftbox-sticky-image{
  width:62px;
  height:62px;
  border-radius:14px;
  object-fit:cover;
  flex-shrink:0;
}

.giftbox-sticky-info{
  min-width:0;
}

.giftbox-sticky-info strong{
  display:block;
  font-size:16px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.giftbox-sticky-meta{
  display:flex;
  flex-wrap:wrap;
  font-size:13px;
  color:#666;
}

.giftbox-sticky-right{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
}

#giftbox-sticky-price{
  font-size:24px;
  font-weight:700;
  color:#2b2b2b;
  white-space:nowrap;
}

.giftbox-sticky-quantity{
  display:flex;
  align-items:center;
  border:1px solid #ddd;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.giftbox-sticky-quantity button{
  width:38px;
  height:42px;
  border:none;
  background:#fff;
  cursor:pointer;
  font-size:22px;
  transition:.2s;
}

.giftbox-sticky-quantity button:hover{
  background:#f6f3ff;
}

#giftbox-sticky-qty{
  width:42px;
  height:42px;
  line-height: 42px;
  border:none;
  background:#fff;
  text-align:center;
  font-size:15px;
  font-weight:700;
  outline:none;
  -moz-appearance:textfield;
}

#giftbox-sticky-qty::-webkit-outer-spin-button,
#giftbox-sticky-qty::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

#giftbox-sticky-button{
  height:50px;
  padding:0 24px;
  border:none;
  border-radius:14px;
  background:#ffca28;
  color:#222;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
  white-space:nowrap;
}

#giftbox-sticky-button:hover{
  background:#f2bf1b;
  transform:translateY(-1px);
}

#giftbox-toast{
  position:fixed;
  left:50%;
  bottom:115px;
  transform:translateX(-50%) translateY(20px);
  background:#fff;
  color:#333;
  padding:14px 20px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  border:1px solid #ece8f6;
  font-size:15px;
  font-weight:600;
  opacity:0;
  visibility:hidden;
  transition:.25s;
  z-index:10000;
  pointer-events:none;
}

#giftbox-toast.show{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

/* PRODUCTPAGES */
#giftbox-included-container{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:20px;
}

.giftbox-gift{
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px 14px;
    background:#fff;
    border:1px solid #ece8f6;
    border-radius:14px;
    transition:.2s;
}

.giftbox-gift:has(.giftbox-gift-choose) {
  cursor: pointer;
}

.giftbox-gift:hover{
    border-color:#d9cbff;
    box-shadow:0 6px 18px rgba(139,99,255,.08);
}

.giftbox-gift img{
    width:54px;
    height:54px;
    border-radius:10px;
    object-fit:cover;
    flex-shrink:0;
}

.giftbox-gift-title{
    flex:1;
    min-width:0;
}

.giftbox-gift-title strong{
    display:block;
    font-size:16px;
    font-weight:700;
    line-height:1.25;
    margin-bottom:2px;
}

.giftbox-gift-selected{
    display:block;
    font-size:13px;
    color:#777;
    line-height:1.3;
}

.giftbox-gift-fixed,
.giftbox-gift-choose{
    height:32px;
    padding:0 12px;
    border-radius:999px;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    font-weight:600;
    flex-shrink:0;
}

.giftbox-gift-personalize{
    display:inline-flex;
    align-items:center;
    gap:6px;
    height:32px;
    padding:0 12px;
    border-radius:999px;
    background:#fff7e8;
    border:1px solid #ffe1a6;
    color:#c88600;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    white-space:nowrap;
    flex-shrink:0;
}

.giftbox-gift-personalize::before{
    content:"✏";
    font-size:11px;
}

.giftbox-gift-personalize::after{
    content:"›";
    font-size:16px;
    margin-left:2px;
}

.giftbox-gift-personalize:hover{
    background:#ffc83d;
    border-color:#ffc83d;
    color:#fff;
}

.giftbox-personalisation{
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #ece8f6;
}

.giftbox-personalisation label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:600;
    color:#333;
}

.giftbox-personalisation input{
    width:100%;
    height:48px;
    padding:0 16px;
    border:1px solid #dcd6ef;
    border-radius:12px;
    background:#fff;
    font-size:15px;
    color:#333;
    transition:.2s;
    box-sizing:border-box;
}

.giftbox-personalisation input::placeholder{
    color:#aaa;
}

.giftbox-personalisation input:focus{
    outline:none;
    border-color:#8b63ff;
    box-shadow:0 0 0 4px rgba(139,99,255,.12);
}

.giftbox-personalisation small{
    display:block;
    margin-top:8px;
    font-size:12px;
    color:#777;
}

.giftbox-gift-fixed{
    background:#f6f6f6;
    color:#777;
}

.giftbox-gift-fixed:before{
    content:"🔒";
    font-size:11px;
}

.giftbox-gift-choose{
    background:#f4efff;
    color:#7d5af5;
    cursor:pointer;
    transition:.2s;
}

.giftbox-gift-choose:hover{
    background:#8b63ff;
    color:#fff;
}

.giftbox-gift-choose:before{
    content:"✏";
    font-size:11px;
}

.giftbox-gift-choose:after{
    content:"›";
    font-size:16px;
}

.extra-product-fields{
  background: var(--purplelight);
  padding:20px;
  border-radius: 8px;
  margin-bottom:20px;

}


.product-usp-list{
  list-style:none;
  margin:20px 0;
  padding:10px;
  border-radius: 6px;
  background:var(--purplelight);
}

.product-usp-list li{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  font-size:15px;
  font-weight:500;
  color:#333;
}

.product-usp-list li::before{
  content:"✓";
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:50%;
  background:var(--purplelight);
  color:var(--purple);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
}

.extra-product-fields .button{
  width:100%;
}
#giftbox-extras{
  background:var(--purplelight);
  padding:20px;
  margin-top:20px;
  position: relative;
}

.giftbox-choose-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin:25px 0;
}

.giftbox-choose-product{
    background:#fff;
    border:1px solid #ece8f6;
    border-radius:16px;
    overflow:hidden;
    cursor:pointer;
    transition:.2s;
}

.giftbox-choose-product:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.giftbox-choose-product.active{
    border-color:#8b63ff;
    box-shadow:0 10px 25px rgba(139,99,255,.18);
}

.giftbox-choose-image{
    aspect-ratio:1;
    background:#fafafa;
}

.giftbox-choose-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.giftbox-choose-content{
    padding:14px;
    text-align:center;
}

.giftbox-choose-content h4{
    margin:0;
    font-size:15px;
    line-height:1.4;
    font-weight:600;
}

#giftbox-save-choice{
    width:100%;
    height:48px;
    border:none;
    border-radius:12px;
    background:#ffca28;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    margin-top:20px;
    transition:.2s;
}

#giftbox-save-choice:hover{
    transform:translateY(-1px);
}

.giftbox-complete-extra .price{
  color:#000;
}

.product-delivery-info {
  margin-top:10px;
  padding: 13px 15px;
  background: #f7faf7;
  border: 1px solid #e3eee5;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
  width:100%;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: #287a3d;
    font-weight: 600;
}

.stock-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #35a853;
    border-radius: 50%;
}

.product-delivery {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #444;
}

.product-delivery strong {
    color: #222;
    font-weight: 600;
}

.single_add_to_cart_button{
    border:none;
    background:#FFC629;
    color:#000;
    line-height: 40px !important;
    font-weight: bold;
  }

.giftbox-swipe-hint {
  display: none;
}

@keyframes giftboxSwipeHint {
  0%, 100% {
      transform: translateX(-50%);
  }

  50% {
      transform: translateX(calc(-50% + 5px));
  }
}

@media (max-width: 768px){

  #breadcrumbs{
    display: none;
  }

  h1{
    font-size:24px !important;
    margin-top:10px;
    margin-bottom:0px !important;
  }

  .giftbox-product-layout {
    display: block;
    margin:0px;
  }

  .giftbox-product-left {
      position: relative;
      align-items: start;
      bottom:0px;
    }

  .giftbox-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    position: absolute;
    left: 50%;
    bottom: 45px;
    transform: translateX(-50%);
    z-index: 9999;

    padding: 11px 17px;

    background: #fff;
    color: #222;

    border: 1px solid #e8d9ff;
    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;

    box-shadow: 0 4px 16px rgba(60, 30, 90, 0.15);

    cursor: pointer;

    animation: giftboxSwipeHint 2s ease-in-out infinite;
    }

    .giftbox-swipe-hint span {
      display: inline-flex;
      align-items: center;
      justify-content: center;

      width: 22px;
      height: 22px;

      background: #f1e7ff;
      border-radius: 50%;

      font-size: 16px;
      line-height: 1;
    }

  .giftbox-product-left .woocommerce-product-gallery {
    width: 100%;
    margin: 0;
  }

  .giftbox-product-left .woocommerce-product-gallery__wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0;
    margin-bottom:20px;
  }

  .giftbox-product-left .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
    display: none;
  }

  .giftbox-product-left .woocommerce-product-gallery__image {
    flex: 0 0 100%;
    width: 100% !important;
    scroll-snap-align: start;
    margin: 0 !important;
  }

  .giftbox-product-left .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* NEW */
  .giftbox-step-content{
    grid-template-columns:1fr;
    gap:24px;
    display: block;
  }

  /* Verberg de linkerkant volledig */
  .giftbox-sticky-left{
    display:none;
  }

  /* Rechterkant over volledige breedte */
  .giftbox-sticky-right{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  #giftbox-save-choice{
    position:fixed;
    bottom:0px;
    left:0px;
    display:block;
    width:100%;
    padding:15px;
    border:none;
    border-radius: 0px;
    z-index:10;
  }

  /* Prijs juist WEL tonen */
  #giftbox-sticky-price{
    display:block;
    font-size:18px;
    font-weight:700;
    white-space:nowrap;
  }

  .giftbox-sticky-quantity{
    height:36px;
  }

  .giftbox-sticky-quantity button{
    width:30px;
    height:36px;
  }

  #giftbox-sticky-button{
    height:46px;
    padding:0 14px;
    font-size:13px;
  }

  .giftbox-complete-extras-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }

  .giftbox-complete-extra{
    display:grid;
    grid-template-columns:72px 1fr;
    gap:12px;
    align-items:center;
    padding:10px;
    border-radius:12px;
  }

  .giftbox-complete-extra-image{
    width:72px;
    height:72px;
    aspect-ratio:auto;
    border-radius:10px;
    overflow:hidden;
  }

  .giftbox-complete-extra-image img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .giftbox-complete-extra-content{
    padding:0;
    min-width:0;
    text-align: left !important;
  }

  .giftbox-complete-extra-content h4{
    font-size:14px;
    line-height:1.35;
    min-height:auto;
    margin-bottom:8px;
    -webkit-line-clamp:2;
  }

  .giftbox-complete-extra-bottom{
    margin-top:0;
  }

  .giftbox-complete-extra .price{
    font-size:15px;
  }

  .giftbox-complete-add{
    width:34px;
    height:34px;
    font-size:18px;
  }

  #giftbox-included-container{
    display:grid;
    gap:10px;
  }

  .giftbox-gift-choose{
    line-height: 1.8;
  }

  .giftbox-gift-choose:before{
    display: none;
  }

  .giftbox-gift{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    background:#fff;
    border:1px solid #ece8f6;
    border-radius:12px;
    min-width:0;
  }

  .giftbox-gift img{
    width:48px;
    height:48px;
    border-radius:8px;
    object-fit:cover;
    flex-shrink:0;
  }

  .giftbox-gift-title,.giftbox-gift-title strong{
    font-size:13px;
  }

  #giftbox-toast{
    bottom:58px;
    padding:7px 12px;
    font-size:12px;
    border-radius:8px;
    max-width:calc(100% - 40px);
    text-align:center;
  }

  .giftbox-choose-grid{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .giftbox-choose-product{
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px;
  }

  .giftbox-choose-image{
    width:64px;
    height:64px;
    aspect-ratio:auto;
    flex-shrink:0;
    border-radius:10px;
    overflow:hidden;
  }

  .giftbox-choose-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }

  .giftbox-choose-content{
    flex:1;
    padding:0;
    text-align:left;
    min-width:0;
  }

  .giftbox-choose-content h4{
    margin:0;
    font-size:14px;
    line-height:1.35;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    display:-webkit-box;
    overflow:hidden;
  }
}