/* ============================================================
   Frozberries My Account — Dashboard (Porto compatible) v1.6
   - Stronger Woo/Porto selectors
   - Safe widths inside Porto containers
   - Better sidebar + content spacing
   - No :has() (browser-safe)
   ============================================================ */

/* ---------- Porto/Woo layout tightening (Dashboard only) ---------- */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper{
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper *{
  box-sizing: border-box;
}

/* Prevent Porto theme weird paddings from breaking our layout */
.woocommerce-account .woocommerce-MyAccount-content > .fb-dashboard-wrapper{
  margin: 0 !important;
  padding: 0 !important;
}

/* Optional: nicer spacing between sidebar + content (safe) */
.woocommerce-account .woocommerce-MyAccount-navigation{
  margin-bottom: 14px;
}
.woocommerce-account .woocommerce-MyAccount-content{
  overflow: visible !important;
}

/* ---------- 1) DASHBOARD — Core wrapper ---------- */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: #333;
}

/* ---------- 2) Header ---------- */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-header{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff5f7 0%, #ffe8ee 100%);
  border-radius: 12px;
  margin: 0 0 16px 0;
  border: 1px solid rgba(231, 76, 111, 0.10);
  box-shadow: 0 8px 22px rgba(231, 76, 111, 0.06);
}

.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-avatar{
  flex: 0 0 auto;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-avatar img{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  display: block;
}

.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting{
  flex: 1 1 auto;
  min-width: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting h2{
  margin: 0 0 2px 0;
  font-size: 22px;
  font-weight: 800;
  color: #2d2d2d;
  line-height: 1.25;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting h2 span{
  color: #e74c6f;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting p{
  margin: 0;
  font-size: 12px;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Email pill */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-email{
  font-size: 13px;
  font-weight: 700;
  color: #666;
  padding: 7px 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  display: inline-block;
}

/* ---------- 3) Welcome note ---------- */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-welcome{
  padding: 14px 18px;
  background: #fafbfc;
  border-left: 3px solid #e74c6f;
  border-radius: 0 10px 10px 0;
  margin: 0 0 18px 0;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-welcome p{
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #666;
}

/* ---------- 4) Cards container ---------- */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-cards{
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

/* Individual card */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper a.fb-dash-card,
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none !important;
  color: #333 !important;
  border-bottom: 1px solid #f3f3f3;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  background: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card:last-child{
  border-bottom: none;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper a.fb-dash-card:hover{
  background: #fff8f9;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper a.fb-dash-card:active{
  background: #fff0f3;
  transform: scale(0.998);
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-static{
  cursor: default;
}

/* Icon */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, #fff5f7, #ffe8ee);
  border-radius: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-icon svg{
  width: 20px;
  height: 20px;
  stroke: #e74c6f;
  stroke-width: 2;
  fill: none;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper a.fb-dash-card:hover .fb-dash-card-icon{
  background: linear-gradient(135deg, #ffe8ee, #ffd6e0);
  box-shadow: 0 6px 16px rgba(231, 76, 111, 0.10);
}

/* Body */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body{
  flex: 1;
  min-width: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body h3{
  margin: 0 0 2px 0;
  font-size: 15px;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.3;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body p{
  margin: 0;
  font-size: 13px;
  color: #9b9b9b;
  line-height: 1.4;
}

/* Right action */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-arrow{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-btn-text{
  display: inline-block;
  padding: 7px 16px;
  background: #e74c6f;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
  box-shadow: 0 6px 16px rgba(231, 76, 111, 0.14);
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper a.fb-dash-card:hover .fb-dash-btn-text{
  background: #d63c5e;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(231, 76, 111, 0.20);
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-arrow svg{
  stroke: #cfcfcf;
  transition: stroke 0.2s ease, transform 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper a.fb-dash-card:hover .fb-dash-card-arrow svg{
  stroke: #e74c6f;
  transform: translateX(2px);
}

/* ---------- 5) Gift note ---------- */
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fffceb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 12px;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-emoji{
  font-size: 28px;
  line-height: 1;
  min-width: 36px;
  text-align: center;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-body{
  flex: 1;
  min-width: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-body strong{
  display: block;
  font-size: 14px;
  color: #92400e;
  margin-bottom: 2px;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-body p{
  margin: 0;
  font-size: 13px;
  color: #a16207;
  line-height: 1.5;
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-btn{
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.18);
}
.woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.24);
}

/* ---------- 6) Responsive ---------- */
@media screen and (max-width: 768px){
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-header{
    padding: 16px 18px;
    gap: 12px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting h2{
    font-size: 20px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-avatar img{
    width: 46px;
    height: 46px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card{
    padding: 14px 16px;
    gap: 12px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-icon{
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-icon svg{
    width: 18px;
    height: 18px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body h3{
    font-size: 14px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body p{
    font-size: 12px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-btn-text{
    padding: 6px 12px;
    font-size: 11px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-email{
    max-width: 200px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px){
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-header{
    padding: 14px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting h2{
    font-size: 18px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting p{
    font-size: 11px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-avatar img{
    width: 40px;
    height: 40px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-welcome{
    padding: 12px 14px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-welcome p{
    font-size: 13px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card{
    flex-wrap: wrap;
    padding: 14px;
    gap: 10px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body{
    flex: 1 1 calc(100% - 56px);
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-arrow{
    width: 100%;
    justify-content: flex-end;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-btn-text{
    width: 100%;
    text-align: center;
    display: block;
    padding: 10px;
    font-size: 13px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-arrow svg{
    display: none;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-email{
    max-width: 100%;
    width: 100%;
    text-align: center;
    display: block;
    font-size: 12px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift{
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-gift-btn{
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}

@media screen and (max-width: 360px){
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-greeting h2{
    font-size: 16px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body h3{
    font-size: 13px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .fb-dashboard-wrapper .fb-dash-card-body p{
    font-size: 11px;
  }
}