/**
 * SevenGifts Lead Time Shortcode Styles
 */
.sevengifts-lead-time-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 450px;
}

.sevengifts-lead-time-container h4 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.sevengifts-lead-time-container h4 span {
    color: #cd3333;
    font-weight: 700;
}

.sevengifts-lead-time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lead-time-option {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    text-align: center;
    min-width: 70px;
    background: #fff;
    box-sizing: border-box;
    display: inline-block;
}

.lead-time-option:hover {
    border-color: #cd3333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lead-time-label {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    display: block;
    margin-bottom: 2px;
}

.lead-time-days {
    font-weight: normal;
    font-size: 14px;
    color: #333;
}

/**
 * SevenGifts Product Specifications Styles
 */
.sevengifts-specifications-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
}

.sevengifts-specifications-container h4 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.sevengifts-specifications-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
}

.sevengifts-specifications-table th,
.sevengifts-specifications-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.sevengifts-specifications-table th {
    width: 30%;
    font-weight: 600;
    background-color: #f7f7f7;
    color: #333;
}

.sevengifts-specifications-table td {
    color: #555;
}

.sevengifts-specifications-table tr.carton-header th {
    background-color: #efefef;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Admin Styles */
#specifications_product_data .options_group h4 {
    margin: 15px 0 5px;
    font-weight: 600;
    color: #23282d;
}

/**
 * SevenGifts Selling Pricelist Admin Styles
 */
.sevengifts-pricelist-container {
    margin: 10px 0;
    overflow: auto;
}

.sevengifts-pricelist-container table {
    border-collapse: collapse;
    width: 100%;
}

.sevengifts-pricelist-container th {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    background-color: #f7f7f7;
}

.sevengifts-pricelist-container td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.sevengifts-pricelist-container input.short {
    width: 100%;
}

.sevengifts-pricelist-container button.remove-row {
    color: #b32d2e;
    border-color: #b32d2e;
}

.sevengifts-pricelist-container button.remove-row:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    color: #fff;
}

.sevengifts-pricelist-container .pricelist-row:hover {
    background-color: #f9f9f9;
}

.sevengifts-pricelist-container tfoot button {
    margin-top: 10px;
}

/**
 * SevenGifts Selling Pricelist Frontend Styles
 */
.sevengifts-pricelist-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
}

.sevengifts-pricelist-container h4 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.sevengifts-pricelist-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.sevengifts-pricelist-table th {
    background-color: #f7f7f7;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.sevengifts-pricelist-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.sevengifts-pricelist-table tr:hover {
    background-color: #f9f9f9;
}

/**
 * Admin Pricelist Table Preview Styles
 */
.sevengifts-pricelist-preview {
    margin: 15px 0;
    max-width: 100%;
    overflow-x: auto;
}

.sevengifts-admin-pricelist-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.sevengifts-admin-pricelist-table th {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #23282d;
}

.sevengifts-admin-pricelist-table td {
    border: 1px solid #eee;
    padding: 8px 12px;
    vertical-align: middle;
}

.sevengifts-admin-pricelist-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sevengifts-admin-pricelist-table tr:hover {
    background-color: #f5f5f5;
}

.sevengifts-pricelist-preview p {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    color: #666;
}

/**
 * SevenGifts Price Shortcode Styles
 */
.sevengifts-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 450px;
}

.sevengifts-price-per-piece {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.per-piece-text {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.sevengifts-quantity {
    display: flex;
    flex-direction: column;
}

.qty-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: right;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    border: 1px solid #ddd;
    background: #f5f5f5;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-controls button:hover {
    background: #eee;
    border-color: #ccc;
}

.quantity-controls input.qty {
    width: 60px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin: 0 5px;
    font-size: 14px;
}

/* Attribute slug styling */
.attribute-slug, 
.variation-attribute-slug {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    display: inline-block;
    margin-left: 5px;
}

/* Variable product attribute styling */
.woocommerce_variations .woocommerce_variation .variable_attributes_wrapper span {
    position: relative;
    display: inline-block;
}

/* Attribute term list styling */
.woocommerce_attribute_data .data table td.attribute_name .attribute-terms .select2-selection__choice {
    position: relative;
    padding-right: 10px;
}

/* Styling for the variable product options table */
.woocommerce_variations .variable_attributes {
    width: 100%;
}

.woocommerce_variations .variable_attributes span.variation-attribute-slug {
    display: inline-block;
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    margin-left: 3px;
}

/* Fix spacing issues in select2 dropdowns */
.select2-container--default .select2-results__option {
    padding: 6px 8px;
    line-height: 1.4;
}

.select2-container--default .select2-results__option .attribute-slug {
    display: block;
    margin-top: 2px;
}

/* Fix variable product options display */
.woocommerce_variations .woocommerce_variation .options .attribute-option {
    display: inline-block;
    margin-right: 5px;
}

/* Make the variations list more readable */
.woocommerce_variations .woocommerce_variation h3 span {
    margin-right: 5px;
}

/* Added styling for the slug display in variable product editor */
.woocommerce_variations select[name^="attribute_"] option {
    padding: 3px;
}

.variable_attributes_wrapper {
    line-height: 1.5;
}

/* Styling for the slug text */
option, select, .select2-results__option {
    color: #333;
}
