/* Woo Size Guide Popup - Styles */
.sgw-open-btn{
  margin-top: .75rem;
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.sgw-modal[hidden]{ display: none !important; }
.sgw-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  font-family: inherit;
}
.sgw-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.sgw-modal__dialog{
  position: relative;
  width: min(92vw, 720px);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 1.25rem;
  direction: rtl;
}
.sgw-modal__title{
  margin: 0 0 .75rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.2px;
  text-align: right;
  color: #111827;
}
.sgw-modal__close{
  position: absolute;
  top: .5rem;
  left: .75rem; /* RTL: close on left side */
  width: 38px;
  height: 38px;
  border: none;
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: #111827;
}
.sgw-modal__close:hover{ background:#e5e7eb; }

/* Table styling */
.sgw-table-wrap{ width: 100%; }
.sgw-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.06) inset, 0 0 0 1px rgba(0,0,0,.06);
}
.sgw-table thead th{
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  color: #0f172a;
  text-align: right;
  padding: 12px 14px;
  font-weight: 800;
  border-bottom: 1px solid #e5e7eb;
}
.sgw-table tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #111827;
}
.sgw-table tbody tr:nth-child(even) td{ background: #fafafa; }
.sgw-table tbody tr:hover td{ background: #f3f4f6; }

.sgw-note{
  margin-top: .75rem;
  font-size: .875rem;
  color: #6b7280;
  text-align: right;
}

/* Small screens: keep table readable */
@media (max-width: 480px){
  .sgw-modal__dialog{ padding: .9rem; }
  .sgw-table thead{ position: sticky; top: 0; z-index: 1; }
}
