/**
 * WooCommerce Custom Product Add-ons - Styles
 * Professional styling for custom add-on fields
 */

/* Main wrapper */
.wc-custom-addons-wrapper {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    padding: 10px;
    margin: 0;
    clear: both;
}
.wc-custom-addon-fields-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
    margin-top: 20px;
}

.wc-custom-text-fields-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
  }
/* Title */
.wc-custom-addons-title,.table.variations label {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #c34591;
    border-bottom: 2px solid #c34591;
    padding-bottom: 0;
    text-transform: uppercase;
    line-height: 1.4 !important;
}
table.variations tr{
    padding: 10px 10px 0px !important;
}
.variations tr .value {
    padding-left: 0 !important;
}
.variations tr .label {
  padding: 0 !important;
  font-size: 18px;
  font-weight: 800;
  color: #c34591;
  border-bottom: 2px solid #c34591 !important;
  margin-bottom: 10px;
  line-height: 1.4 !important;
}

/* Individual addon field */
.wc-custom-addon-field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* Labels */
.wc-custom-addon-field label {
    font-weight: 800;
    font-size: 16px;
    margin: 0;
    margin-bottom: 5px;
    color: #202020;
    align-items: center;
    text-align: center;
    line-height: 16px;
}
/* Price display in label */
.wc-addon-price {
    font-weight: 800;
    font-size: 15px;
    color: #202020;
    margin-left: 8px;
}

/* Quantity input */
.wc-custom-addon-qty {

    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    transition: border-color 0.3s ease;
    padding: 5px !important;
}

.wc-custom-addon-qty:focus {
    border-color: #c34591;
    outline: none;
    box-shadow: 0 0 0 1px #c34591;
}

/* Total display */
.wc-custom-addons-total {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 10px;
    margin-top: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    text-transform: uppercase;
}

.wc-custom-addons-total strong {
    color: #202020;
}

.wc-addons-total-price {
    color: #c34591;
    font-weight: 800;
    font-size: 18px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .wc-custom-addon-field {
        flex-direction:column;
        align-items: flex-start;
    }

    .wc-custom-addon-field label {
        margin-bottom: 8px;
        width: 100%;
    }

    .wc-custom-addon-qty {
        width: 100%;
        max-width: 100%;
    }

    .wc-custom-addons-total {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

@media screen and (max-width: 480px) {

  .variations tr .label {
  padding:0px !important;

}
.variations tr .value {

    padding-left: 0px !important;

  }
    .wc-custom-addons-wrapper {
        padding:10px;
    }


    .wc-addon-price {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
    .wc-custom-addon-fields-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap:5px;
        margin-top: 20px;
    }

    .wc-custom-text-fields-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap:5px;
      }
}

/* WooCommerce compatibility */
.single-product .wc-custom-addons-wrapper {
    width: 100%;
}

/* Animation for price updates */
.wc-addons-total-price,
.woocommerce-Price-amount.amount {
    transition: color 0.2s ease;
}

/* Spinner buttons for number input (Chrome, Safari, Edge) */
.wc-custom-addon-qty::-webkit-inner-spin-button,
.wc-custom-addon-qty::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

/* Firefox number input */
.wc-custom-addon-qty[type=number] {
    -moz-appearance: textfield;
}

.wc-custom-addon-qty::-webkit-inner-spin-button,
.wc-custom-addon-qty::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button;
    margin: 0;
}

/* Custom Text Fields Section */
.wc-custom-addon-fields {
    margin-top: 20px;
}


.wc-custom-text-field label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 5px;
    color: #202020;
}

.wc-custom-text-field label .required {
    color: #c34591;
    font-weight: 800;
}

.wc-custom-text-input {
    width: 100%;
    padding: 7px 12px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 3px;
    font-size: 17px;
    transition: border-color 0.3s ease;
    margin-bottom: 0px !important;
}

.wc-custom-text-input:focus {
    border-color: #c34591;
    outline: none;
    box-shadow: 0 0 0 1px #c34591;
}

/* Textarea specific styles */
.wc-custom-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}
