/* === Company Search Styles === */

#ig-company-search {
    max-width: 500px;
    margin: 50px auto;
    position: relative;
    font-family: Arial, sans-serif;
  }
  
.ig-search-wrapper {
  position: relative;
}

#ig-company-name {
  width: 100%;
  padding: 15px 40px 15px 20px;
  border: 2px solid #233167;
  border-radius: 50px; /* default when no results */
  font-size: 16px;
  outline: none;
  transition: border-radius 0.2s ease;
}

.ig-search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #233167;
  font-size: 20px;
  pointer-events: none;
}

#ig-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 2px solid #233167;
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
  display: none; /* default hidden */
}

#ig-search-results li {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

#ig-search-results li:hover {
  background: #f5f5f5;
}

#ig-company-popup {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.ig-popup-inner {
  background: #fff;
  max-width: 900px;
  margin: 100px auto;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  color: #233167;
}

.ig-popup-inner h2 {
  margin-top: 0;
  color: #D84039;
}

.ig-popup-inner p {
  margin: 10px 0;
}

.ig-close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #D84039;
  cursor: pointer;
}

#ig-search-results.loading::before {
    content: '';
    display: block;
    margin: 15px auto;
    width: 30px;
    height: 30px;
    border: 4px solid #233167;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.ig-inline-spinner {
    width: 24px;
    height: 24px;
    margin: 10px auto;
    border: 4px solid #233167;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


/* === Dynamic border radius when results are visible === */
#ig-search-results.show {
  display: block;
}

#ig-search-results.show ~ .ig-search-wrapper #ig-company-name {
  border-radius: 25px 25px 0px 0px;
}


.ig-visura-btn {
    background-color: #D84039;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    margin-right:73%;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.ig-visura-btn:hover {
    background-color: #233167;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(35, 49, 103, 0.3);
}

.ig-visura-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.kbis-upload-wrapper {
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: 25px;
  background: #fafafa;
  border-radius: 6px;
}
.kbis-preview {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.kbis-preview a {
  color: #28a745;
  font-weight: bold;
}
.kbis-remove {
  cursor: pointer;
  color: #c00;
  font-size: 18px;
}
.kbis-upload-btn {
  margin-top: 10px;
  background: #007cba;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Apply only to WooCommerce Thank You page */
body.woocommerce-order-received {
  color: #000 !important;
}

/* Ensure all text inside the WooCommerce order details section is black */
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-order-details * {
  color: #000 !important;
}

/* Hide the subscription table only on Thank You page */
body.woocommerce-order-received .woocommerce-orders-table--subscriptions {
  display: none !important;
}

td.product-total {
    display: none !important;
}

.recurring-totals,
.cart-subtotal.recurring-total,
.tax-rate.tax-rate-it-imposte-1.recurring-total,
.order-total.recurring-total {
  display: none !important;
}

/* === GENERAL === */
body.woocommerce-account {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #233167, #D84039);
  min-height: 100vh;

}

/* === SIDEBAR WRAPPER: profile + nav === */
.account-sidebar {
  display: block;
  flex-direction: column;
  width: 25%;
	float:left;
  height: 1000px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  overflow: hidden;
	padding:10px;
}

/* === PROFILE AT TOP === */
.account-page-profile {
  text-align: center;
  padding: 30px 20px;
}

.account-page-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.account-page-profile h3 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

/* === NAV INSIDE SIDEBAR === */
.woocommerce-MyAccount-navigation {
  background: none; /* handled by sidebar wrapper */
  flex: 1; /* fill remaining height */
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation {
    float: left;
    width: 100%;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
  transition: all 0.3s ease;
}

.e-my-account-tabs-vertical .woocommerce-MyAccount-navigation li {
	margin:5px 0 0 0;
}

.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 15px 30px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li:hover a {
  background: rgba(255, 255, 255, 0.2);
  padding-left: 40px;
	margin-top:5px;
}

/* === CONTENT === */
/* === GLASS EFFECT FOR CONTENT WRAPPER === */
/* === MAIN GLASS PANEL: the wrapper === */
.woocommerce-MyAccount-content-wrapper {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 40px !important;
  color: #fff;
}

/* === Remove background from inner notices (just in case) === */
.woocommerce-notices-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* === Remove background from generic paragraphs and links === */
.woocommerce-MyAccount-content-wrapper p,
.woocommerce-MyAccount-content-wrapper a {
  background: transparent !important;
  color: #fff; /* white text on glass */
}

/* === OPTIONAL: If you want the credits box to pop inside === */
.woo-credits-my-account-table {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}

.woo-credits-my-account-table h2,
.woo-credits-my-account-table p {
  color: #fff;
}

.woocommerce-MyAccount-content-wrapper > p {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #fff;
  margin-bottom: 20px;
}

/* === GLASS per ciascun indirizzo === */
.woocommerce-Address {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #fff;
  margin-bottom: 20px;
}

/* === Titolo e link coerenti === */
.woocommerce-Address h2,
.woocommerce-Address a {
  color: #fff;
}

.woocommerce-Address a.edit {
  text-decoration: underline;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-MyAccount-content p:last-of-type {
    margin-bottom: 5px;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-address-fields, .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) address {
    background-color: #ffffff00;
    padding: var(--sections-padding, 16px 30px);
    border-left: unset;
    border-bottom: unset;
    border-right: unset;
    border-top: unset;
    border-radius: unset;
	color:#fff !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab__payment-methods .woocommerce .woocommerce-MyAccount-content-wrapper .button {
    background: transparent;
    border-radius: var(--tables-button-border-radius, 3px);
    border: 2px var(--tables-buttons-border-type, solid) var(--tables-buttons-border-color, #5bc0de);
    vertical-align: middle;
    color: #ffffff;
    padding: var(--tables-button-padding, 5px 10px);
}

/* === Force white color for labels, legends, and em inside WooCommerce Edit Account === */
.woocommerce-MyAccount-content-wrapper p,
.woocommerce-EditAccountForm label,
.woocommerce-EditAccountForm legend,
.woocommerce-EditAccountForm em {
  color: #fff !important;
}


/* === Notices senza sfondo === */
.woocommerce-notices-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab__dashboard:not(.e-my-account-tab__dashboard--custom) .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__downloads .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__edit-account .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__edit-address .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__payment-methods .woocommerce-MyAccount-content-wrapper {
    border-left: unset;
    border-bottom: unset;
    border-right: unset;
    border-top: unset;
    border-radius: var(--sections-border-radius, 3px);
}
.elementor-widget-woocommerce-my-account .e-my-account-tab__dashboard:not(.e-my-account-tab__dashboard--custom) .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__edit-account .woocommerce-MyAccount-content-wrapper, .elementor-widget-woocommerce-my-account .e-my-account-tab__payment-methods .woocommerce-MyAccount-content-wrapper {
    padding: var(--sections-padding, 16px 30px);
    height: 1000px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body.woocommerce-account {
    flex-direction: column;
    padding: 20px;
  }

  .account-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .woocommerce-MyAccount-content {
    margin-left: 0;
    padding: 20px;
  }
}

.woo-username{
	color:#fff !important;
	margin-bottom:5px !important;

}

p.woo-credits {
    color: #fff;
}
/* === FROSTED GLASS NAV BUTTONS === */
.woocommerce-MyAccount-navigation li a {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff !important;
  padding-top: 18px !important;  /* slightly larger top/bottom */
  padding-bottom: 18px !important;
  transition: all 0.3s ease;
}

/* === HOVER STATE === */
.woocommerce-MyAccount-navigation li a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 0 0 rgba(255, 255, 255, 0.2), 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* === ACTIVE STATE === */
.woocommerce-MyAccount-navigation li.is-active a {
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 8px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  color: #fff !important;
}

.elementor-260 .elementor-element.elementor-element-e447ab4 .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li:not(.is-active) a {
    background-color: #EFF8FF;
    border-radius: 10px !important;
    margin: 2px 0 2px 0;
}

.elementor-260 .elementor-element.elementor-element-e447ab4 .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
    border-radius: 10px;
}
.woocommerce-MyAccount-content {
  color: white !important;
}

.woocommerce-MyAccount-content a {
  color: white !important;
}

.woocommerce-MyAccount-content time {
  color: white !important;
}
td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-status {
    color: #fff !important;
}
td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-total {
	color:#fff !important;
}

td.subscription-next-payment.order-date.woocommerce-orders-table__cell.woocommerce-orders-table__cell-subscription-next-payment.woocommerce-orders-table__cell-order-date {
    color: #fff !important;
}
/* Apply transparent glass effect only to containers */
section.woocommerce-order-details,
section.woocommerce-order-details table,
section.woocommerce-order-details header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure all text is fully white and unaffected by transparency */
section.woocommerce-order-details,
section.woocommerce-order-details *,
section.woocommerce-order-details a,
section.woocommerce-order-details time,
section.woocommerce-order-details h2,
section.woocommerce-order-details th,
section.woocommerce-order-details td {
    color: #ffffff !important;
    background: transparent !important; /* Keep only container translucent */
}

table.shop_table.shop_table_responsive.my_account_orders.woocommerce-orders-table.woocommerce-MyAccount-subscriptions.woocommerce-orders-table--subscriptions {
    margin-top: 10px;
}

/* Glassmorphism background + white text for My Account sections */
.woocommerce-MyAccount-content-wrapper table,
.woocommerce-MyAccount-content-wrapper section,
.woocommerce-MyAccount-content-wrapper header,
.woocommerce-MyAccount-content-wrapper address,
.woocommerce-MyAccount-content-wrapper h2,
.woocommerce-MyAccount-content-wrapper th,
.woocommerce-MyAccount-content-wrapper td,
.woocommerce-MyAccount-content-wrapper a,
.woocommerce-MyAccount-content-wrapper p,
.woocommerce-MyAccount-content-wrapper time,
.woocommerce-MyAccount-content-wrapper span,
.woocommerce-MyAccount-content-wrapper .woocommerce-button {
    color: #ffffff !important;
    background: transparent !important;
}

/* Container blur effect */
.woocommerce-MyAccount-content-wrapper table,
.woocommerce-MyAccount-content-wrapper section,
.woocommerce-MyAccount-content-wrapper header,
.woocommerce-MyAccount-content-wrapper address {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Ensure buttons and links stand out */
.woocommerce-MyAccount-content-wrapper .woocommerce-button {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* Optional: Add some space between address blocks */
.woocommerce-MyAccount-content-wrapper address {
    display: block;
    line-height: 1.6;
    font-style: normal;
}

a.edit {
    margin-left: 0px !important;
    margin-top: var(--edit-link-margin-top, 58px) !important;
}

.igcad-confirm-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.glass-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 30px;
	padding:10px;
}

.confirm-title {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #fff;
}

.igcad-alert-warning {
  background: rgba(255, 193, 7, 0.2);
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  color: #000;
}

.igcad-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.igcad-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 10px;
}

/* Green Button */
.igcad-btn.green {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.igcad-btn.green:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Clear Button */
.igcad-btn.clear {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.igcad-btn.clear:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Yellow Button (standalone, typically under warning text) */
.igcad-btn.yellow {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.igcad-btn.yellow:hover {
  background: #e6b800;
}

.igcad-btn.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.igcad-btn.blue {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.igcad-btn.blue:hover {
  background: rgba(255, 255, 255, 0.1);
}



.igcad-section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.igcad-section-grid > .glass-box {
  flex: 1;
  min-width: 300px;
}

.igcad-coming-soon {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 10px;
  color: #fff;
  margin-top: 10px;
}

/*
 * Styles for the "NEW SERVICE" badge on the My Account menu
 */

/* This makes the menu item a positioning container for the badge */
.woocommerce-MyAccount-navigation-link--services a {
    position: relative;
    overflow: visible; /* Ensure the badge isn't clipped */
}

/* Base styles for the "NEW" badge */
.igcad-new-service-badge {
    position: absolute;
    top: -8px; /* Position it slightly above the button */
    right: -10px; /* Position it to the right of the button */
    background-color: #ff4136; /* A bright red color */
    color: #ffffff; /* White text */
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
    z-index: 10;
    
    /* Apply the pulse animation */
    animation: pulse-animation 1.5s infinite;
}

/* Keyframe animation for the pulse effect */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 65, 54, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 65, 54, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 65, 54, 0);
    }
}
