/**
* Società Sportive per WooCommerce – Stili frontend
*
* Gestisce: form di registrazione, area privata, griglia prodotti.
*/

/* ==========================================================================
Pagina post checkout
========================================================================== */
.woocommerce-order-received .woocommerce-customer-details--phone{margin-bottom: 0;}
.woocommerce-order-received .woocommerce-customer-details .addresses{margin-bottom: 0!important;}

/* ==========================================================================
Form di registrazione
========================================================================== */

.os-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

#os_societa_fields {
  transition: opacity 0.2s ease;
}

.os-optional {
  font-size: 0.85em;
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.os-form-section-referente,
.os-form-section-atleti {
  margin-top: 30px;
}

#os_societa_fields hr {
  clear: both;
  margin-top: 20px;
  margin-bottom: 20px;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* ==========================================================================
Form di checkout
========================================================================== */
.os-readnoly-field input{
    cursor: not-allowed;
}

#os_atleta1_nome,
#os_atleta1_cognome,
#os_atleta1_data,
#os_atleta2_nome,
#os_atleta2_cognome,
#os_atleta2_data{
  cursor: not-allowed;
}

.woocommerce-form-register #os_atleta1_nome,
.woocommerce-form-register #os_atleta1_cognome,
.woocommerce-form-register #os_atleta1_data,
.woocommerce-form-register #os_atleta2_nome,
.woocommerce-form-register #os_atleta2_cognome,
.woocommerce-form-register #os_atleta2_data{
  cursor: inherit;
}

/* ==========================================================================
Area riservata – contenitore
========================================================================== */

/* --- login required box --- */
.os-area--login-required {
  position: relative;
  padding: 1.75rem 2rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  border-left: 4px solid #008630;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.os-area__login-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E1F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008630;
  flex-shrink: 0;
}

.os-area__login-body {
  flex: 1;
  min-width: 220px;
}

.os-area__login-title {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 .4em;
  color: #111;
}

.os-area--login-required .os-area__message {
  font-size: .95em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.os-area__login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.os-area__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .9em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.os-area__btn:hover { opacity: .85; }

.os-area__btn--primary {
  background: #008630;
  color: #fff;
  border: none;
}

.os-area__btn--secondary {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

/* ==========================================================================
Product meta
========================================================================== */
.posted_in.posted_in_club{
  margin-top: 0;
}

/* ==========================================================================
Griglia prodotti
========================================================================== */
.os-products--cols-1 {
  --os-cols: 1;
}

.os-products--cols-2 {
  --os-cols: 2;
}

.os-products--cols-3 {
  --os-cols: 3;
}

.os-products--cols-4 {
  --os-cols: 4;
}

.os-products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(var(--os-cols, 3), 1fr);
}

/* ==========================================================================
Singolo prodotto
========================================================================== */

.os-product {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.os-product:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.os-product__link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px;
}

.os-product__image img {
  /* width: 100%;
  height: 220px;
  object-fit: cover; */
  border-radius: 4px;
}

.os-product__name {
  margin: 12px 0 6px;
  font-size: 1em;
  font-weight: 600;
}

.os-product__price {
  color: #c0392b;
  font-weight: 700;
}

.os-product__add-to-cart {
  display: block;
  margin: 0 16px 16px;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
}

/* ==========================================================================
Pagina mio account
========================================================================== */

.os-societa-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}

.os-societa-box__logo img,
.os-societa-box__logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.os-societa-box__logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 22px;
    font-weight: 500;
    color: #888;
}

.os-societa-box__info { flex: 1; min-width: 180px; }
.os-societa-box__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #888; margin: 0 0 4px; }
.os-societa-box__nome { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.os-societa-box__desc { font-size: 14px; color: #666; margin: 0; }

.os-societa-box__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid #008630;
    background-color: #008630;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #FFF;
    white-space: nowrap;
    transition: background .15s;
}
.os-societa-box__cta:hover { background: #f5f5f5; color: #008630;}

.os-shipping-box-row td {
	padding-top: 16px;
	padding-bottom: 16px;
}

.os-shipping-box {
	padding: 18px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fafafa;
  text-align: left;
}

.os-shipping-box__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
}

.os-shipping-box__description {
	margin: 0 0 14px;
	color: #555;
	font-size: 14px;
	line-height: 1.4;
}

.os-shipping-box__address {
	padding: 12px;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	line-height: 1.5;
}

/* ==========================================================================
Responsive
========================================================================== */

@media (max-width:768px) {
  .os-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:480px) {
  .os-products {
    grid-template-columns: 1fr;
  }
}
