/*
    Theme Name:     The Inner World
    Theme URI:      https://clay9.com
    Description:    Custom WordPress Theme
    Version:        0.1
    Author:         Developer
    Author URI:     https://clay9.com
	Text Domain:    theinnerworld
	Template:       skeletor-core
*/

.woocommerce-subscription {
    max-width: var(--wp--style--global--wide-size) !important;
    margin: 0 auto;
    padding: 50px 0;

    .subscription-products {
        display: flex;
        gap: 32px;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin: 32px 0;
    }
}

.no-products-found {
  padding: 60px 20px;
  text-align: center;
  font-size: 20px;
  color: #777;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 600px;
}

#custom-cart-icon {
  z-index: 1 !important;
  position: relative !important;
  display: inline-block;
  bottom: auto !important;
  right: auto !important;
  margin-left: 100px;
}

#custom-cart-icon .dashicons-cart {
  font-size: 28px;
}

.cart-count-bubble {
  position: absolute;
  top: -10px;
  right: -10px;
  background: red;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
}

.subscription-product {
    min-width: 372px;
    max-width: 372px;
    border: 1px solid #DDDEE6;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    text-align: center;
    color: #585858;

    .button {
        cursor: pointer;
        transition: all 0.3s ease-in-out;

        &:hover {
            opacity: .8;
        }
    }

    &.blue {
        .button {
            background-color: #002A62;
        }
    }

    &:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .single_add_to_cart_button {
        background: #FF5811;
        font-size: 16px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        width: 100%;
        border: none;
        color: #fff;
    }

    .product-thumb {
        margin: -32px;
        margin-bottom: 32px;
        position: relative;
        height: 250px;
        overflow: hidden;

        img {
            display: block;
            width: 100%;
            height: 250px;
            -o-object-fit: cover;
            object-fit: cover;
        }
    }

    .reset_variations {
        display: none !important;
    }

    .price {
        display: none;
    }

    .woocommerce-variation-price {
        height: 0;
        font-size: 0 !important;

        .price {
            display: block;
        }
    }

    del .amount {
        text-decoration: line-through !important;
        color: #888 !important;
    }

    table {
        width: 100%;

        tr {
            display: flex;
            flex-direction: column;

            td {
                width: 100%;

                &.label {
                    text-align: left;
                }

                select {
                    min-height: 42px;
                    font-size: 14px;
                }
            }
        }
    }

    .woocommerce-Price-amount.amount {
        margin-bottom: 15px;
        font-weight: 600;
        display: inline-block;
    }

    .single_variation_wrap {
        position: relative;

        .woocommerce-variation-price {
            position: absolute;
            top: -30px;
            font-size: 12px;
            color: #ff5811;
            font-weight: bold;
        }
    }

    .variations {
        margin-top: 15px;
        margin-bottom: 32px;

        label {
            font-size: 16px;
            margin-bottom: 8px;
            display: inline-block;
        }
    }

    .woocommerce-variation-description {
        display: none;
    }

    .selected-subscription {
        color: #585858;
    }
}

.custom-account-buttons {
    text-align: center;
    gap: 10px !important;

    .button {
        color: #fff !important;
        transition: all 0.3s ease-in-out;

        &:hover {
            opacity: .8;
        }

        &.blue {
            background: #002A62 !important;
        }

        &.orange {
            background: #ff5811;
        }
    }
}

.toggle-container-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;

    .toggle-container {
        display: inline-block;
    }

    .toggle-switch {
        position: relative;
        width: 100px;
        height: 40px;
        background-color: #b7b7b7; /* red OFF */
        border-radius: 20px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        box-sizing: border-box;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .toggle-switch.active {
        background-color: #b7b7b7; /* green ON */
    }

    .toggle-knob {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 34px;
        height: 34px;
        background-color: #fff;
        border-radius: 50%;
        transition: left 0.3s ease;
    }

    .toggle-switch.active .toggle-knob {
        left: 63px;
    }

    .toggle-text {
        margin-left: auto;
        margin-right: 15px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .toggle-switch.active {
        .toggle-text {
            margin-left: 15px;
            margin-right: auto;
        }
    }
}

.woocommerce-cart, .woocommerce-checkout {
    .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
        background: #FF5811;
        font-size: 16px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        width: 100%;
        border: none;
        color: #fff;
        transition: all 0.3s ease-in-out;

        &:hover {
            opacity: 0.7;
            transition: all 0.3s ease-in-out;
        }
    }
}


.woocommerce-order {
	margin-bottom:60px;
	margin-top:40px;

	.download-file {
		a {
			background: var(--wp--preset--color--light-orange) !important;
		}
	}

	.woocommerce-order-overview {
		li {
			&::before {
				display:none;
			}
		}
	}

	.woocommerce-order-details { 
		header {
			margin-bottom:20px;
			box-shadow: none;
		}
	}
	
}

.wc-block-grid__products {
	justify-content:center;

	li {
		&::before {
			display: none;
		}
	}
}

/* My Account Styling */
.woocommerce-MyAccount-navigation {

	background: linear-gradient(135deg, #002a62, #064aa4);
	border-radius: 12px;
	padding: 20px;
	color: #fff;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  li {
	padding-left: 0 !important;
    margin: 0 !important;

	  &::before {
		  display:none;
	  }
  }

  a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;

	  &:hover,
	  &[aria-current="page"] {
		  background: rgba(255, 255, 255, 0.2);
		  color: #fff;
	  }
  }
}

.woocommerce-MyAccount-content {
  background: #fff;
  border-radius: 12px;
}


/* Subscriptions Table Styling */
.my_account_subscriptions {
  width: 100%;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px !important;
  border: none !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	
  thead {
    background: linear-gradient(135deg, #002a62, #064aa4);
    color: #fff;
    text-align: left;

    th {
      padding: 12px 15px;
      font-weight: 600;
      font-size: 14px;
    }
  }

  tbody {
    tr {
      border-bottom: 1px solid #f0f0f0;

      &:hover {
        background: rgba(142, 148, 251, 0.05);
      }

      &:last-child {
        border-bottom: none;
      }
    }

    td {
      padding: 12px 15px;
      font-size: 14px;
      color: #555;

      a {
        color: #4e54c8;
        font-weight: 500;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }

      &.order-status {
        font-weight: 600;
        color: #4e54c8;
      }

      &.order-total {
        font-weight: bold;
      }
    }
  }

  tfoot {
    td {
      padding: 12px 15px;
      font-weight: 600;
      background: #fafafa;
    }
  }
}

.woocommerce table.my_account_orders td, .woocommerce table.my_account_orders th {
	padding: 10px;
}
