/* Productos compuesos woocommerce - frontend */
.tcwcp-composite-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0!important;
}

.tcwcp-components {
    display: grid;
    gap: 16px;
    margin: 0 0 20px;
}

.tcwcp-card {
    display: flex;
    gap: 16px;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    padding: 30px!important;
}

.tcwcp-card-image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px!important;
}

.tcwcp-card-content-img-title {
    display: flex;
    gap: 20px;
}

.tcwcp-attribute-row  {
    margin-top: 20px!important;
}

.tcwcp-card h4 {
    font-family: "ClashDisplay", Sans-serif;
    margin: 0 0 8px;
    font-size: 25px;
}

.tcwcp-card-qty {
    margin: 0 0 10px;
    font-size: 14px;
    opacity: .75;
}

.tcwcp-attribute-row {
    margin: 0 0 12px;
}

.tcwcp-attribute-row label {
    /* display: inline-block;
    margin: 0 12px 8px 0;
    font-weight: 600; */
}

.tcwcp-components .select_box_label {
    display: flex;
    flex-wrap: wrap;
}

.tcwcp-attribute-row select.tcwcp-attribute-select {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tcwcp-component-price {
    font-weight: 700;
    margin: 10px 0 0;
    font-size: 25px!important;
}

.tcwcp-component-warning {
    color: #b81c23;
    margin: 8px 0 0;
}

.tcwcp-total-box {
    border-radius: 10px;
    font-size: 33px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tcwcp-total-box strong {
    font-weight: 600;
}

.tcwcp-submit-box {
    display: flex!important;
}

.tcwcp-submit:disabled {
    opacity: .55!important;
    cursor: not-allowed;
    background-color: var(--e-global-color-primary)!important;
}

.tcwcp-name-dorsal-fields {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    /* margin: 12px 0; */
    border-radius: 10px;
    background: #f5f5f5;
}

.tcwcp-attribute-row.value {
    margin-bottom: 0!important;
}

.tcwcp-variations.variations,
.tcwcp-name-dorsal-fields .form-row {
    margin: 0!important;
}

.tcwcp-name-dorsal-fields label {
    display: block;
    margin-bottom: 6px;
}

.tcwcp-name-dorsal-fields input {
    width: 100%;
    max-width: 220px;
}

.tcwcp-name-dorsal-fields abbr.required {
    color: #b81c23;
    text-decoration: none;
}

@media (max-width: 900px){
    .tcwcp-card-content-img-title {
        flex-direction: column;
    }

    .tcwcp-card {
        padding: 20px!important;
    }
}

/* Estructura compatible visualmente con YITH WooCommerce Color, Image & Label Variation Swatches */
.tcwcp-card .select_box:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
    margin-bottom: 5px;
}

.tcwcp-card .select_option {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: inline-block;
    border: 2px solid var(--yith-wccl-form-colors_border, #e6e6e6);
    margin: 0 8px 8px 0;
    position: relative;
    padding: 6px;
    border-radius: var(--yith-wccl-customization-option-border-radius, 999px);
    vertical-align: middle;
    background: #fff;
    width: max-content!important;
    aspect-ratio: auto!important;
}

.tcwcp-card .select_option.selected {
    border-color: var(--yith-wccl-form-colors_accent, #448a85);
}

.tcwcp-card .select_option:not(.inactive):hover {
    border-color: var(--yith-wccl-form-colors-accent-hover, #448a85);
}

.tcwcp-card .select_option.inactive {
    opacity: .4;
    cursor: not-allowed;
}

.tcwcp-card .select_option .yith_wccl_value {
    /* border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    min-width: var(--yith-wccl-customization-color-swatches-size, 44px);
    height: var(--yith-wccl-customization-color-swatches-size, 44px);
    border-radius: var(--yith-wccl-customization-option-border-radius, 999px);
    font-size: 14px;
    line-height: 1; */
}

.tcwcp-card .select_option_colorpicker,
.tcwcp-card .select_option_colorpicker .yith_wccl_value,
.tcwcp-card .select_option_image,
.tcwcp-card .select_option_image .yith_wccl_value {
    border-radius: var(--yith-wccl-customization-color-swatches-border-radius, 999px);
    overflow: hidden;
}

.tcwcp-card .select_option_image .yith_wccl_value {
    padding: 0;
    object-fit: cover;
}

.tcwcp-card .select_option_image img.yith_wccl_value {
    min-width: var(--yith-wccl-customization-color-swatches-size, 44px);
    width: var(--yith-wccl-customization-color-swatches-size, 44px);
    height: var(--yith-wccl-customization-color-swatches-size, 44px);
}

.tcwcp-composite-form[data-price-mode="fixed"] .tcwcp-component-price {
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.55;
}

@media (max-width: 600px) {
    .tcwcp-card {
        grid-template-columns: 1fr;
    }

    .tcwcp-card-image img {
        width: 100%;
        height: auto;
    }
}
