/* Sale amounts share the same treatment in the product, variations and coupon preview. */
body.single-product.woocommerce div.product .summary :is(p.price, span.price) ins,
body.single-product .summary .s360-flash-promotion-prices strong {
    background: none;
    color: #c52222;
    text-decoration: none;
}

/* Purchase-column rhythm only. Native option grids, toggles and hidden states stay in control. */
body.single-product.woocommerce div.product > .summary > .price {
    line-height: 1.2;
    margin: 0 0 12px;
}

body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description {
    line-height: 1.65;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

body.single-product .summary :is(.woocommerce-product-details__short-description, .t360-vehicle-intro) :is(p, ul, ol) {
    line-height: 1.65;
    margin: 0 0 10px;
}

body.single-product .summary :is(.woocommerce-product-details__short-description, .t360-vehicle-intro) > :last-child {
    margin-bottom: 0;
}

body.single-product.woocommerce div.product .summary form.cart {
    margin: 14px 0;
}

/* Headings have one compact rhythm regardless of the heading level selected in YITH. */
body.single-product .summary #yith-wapo-container .addon-header {
    margin-bottom: 12px;
}

body.single-product .summary #yith-wapo-container .addon-header > .wapo-addon-title {
    color: var(--ink, #111);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 !important;
    padding: 0;
}

body.single-product .summary #yith-wapo-container .yith-wapo-block + .yith-wapo-block {
    margin-top: 20px;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon:not(:first-child):not(.empty-title):not(.toggle-open) {
    margin-top: 20px;
}

/* Field labels and input spacing; image labels, radio and checkbox cards are untouched. */
body.single-product .summary #yith-wapo-container .yith-wapo-addon:is(.yith-wapo-addon-type-text, .yith-wapo-addon-type-number, .yith-wapo-addon-type-textarea, .yith-wapo-addon-type-select, .yith-wapo-addon-type-file) .option-container {
    font-size: 13px;
    line-height: 1.4;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon:is(.yith-wapo-addon-type-text, .yith-wapo-addon-type-number, .yith-wapo-addon-type-textarea, .yith-wapo-addon-type-select, .yith-wapo-addon-type-file) .option-container > label {
    color: var(--ink, #111);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon:is(.yith-wapo-addon-type-text, .yith-wapo-addon-type-number, .yith-wapo-addon-type-textarea, .yith-wapo-addon-type-select, .yith-wapo-addon-type-file) .yith-wapo-option > .label {
    margin-bottom: 0;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon :is(.input-text-container, .number-container, .textarea-container) {
    margin-top: 6px;
    padding-top: 0;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon-type-textarea .textarea-container textarea {
    margin-top: 0;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon:is(.yith-wapo-addon-type-text, .yith-wapo-addon-type-number, .yith-wapo-addon-type-textarea, .yith-wapo-addon-type-select) :is(input[type="text"], input[type="number"], textarea, select) {
    background: #fff;
    border: 1px solid #d8ddd1;
    border-radius: 6px;
    box-sizing: border-box;
    color: var(--ink, #111);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    min-height: 44px;
    min-width: 0;
    padding: 10px;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon.yith-wapo-addon-type-textarea .yith-wapo-option .textarea-container textarea {
    min-height: 104px;
    resize: vertical;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon:is(.yith-wapo-addon-type-text, .yith-wapo-addon-type-number, .yith-wapo-addon-type-textarea, .yith-wapo-addon-type-select) :is(input[type="text"], input[type="number"], textarea, select):focus-visible {
    border-color: #8bad32;
    color: var(--ink, #111);
    outline: 2px solid var(--lime, #c6ed62);
    outline-offset: 2px;
}

/* Preserve the uploader's input, progress and success states; compact its visible drop area. */
body.single-product .summary #yith-wapo-container .yith-wapo-addon-type-file .yith-wapo-ajax-uploader {
    background: var(--soft, #f5f6f2);
    border: 1px dashed #c7cfbd;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 0;
    min-height: 68px;
    min-width: 0;
    max-width: 100%;
    padding: 12px;
}

body.single-product .summary #yith-wapo-container .yith-wapo-addon-type-file .yith-wapo-ajax-uploader-container {
    flex-wrap: wrap;
    gap: 10px;
}

body.single-product.woocommerce div.product .summary #yith-wapo-container .yith-wapo-ajax-uploader-container > .button {
    background: #111;
    border: 1px solid #111;
    border-radius: 5px;
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    min-height: 36px;
    min-width: 0;
    padding: 8px 12px;
    width: auto;
}

body.single-product.woocommerce div.product .summary #yith-wapo-container .yith-wapo-ajax-uploader-container > .button:hover {
    background: #252b1e;
    border-color: #252b1e;
    color: #fff;
}

body.single-product .summary #yith-wapo-container .yith-wapo-ajax-uploader-container > .button:focus-visible {
    outline: 2px solid var(--lime, #c6ed62);
    outline-offset: 2px;
}

body.single-product .summary #yith-wapo-container .t360-upload-help {
    color: var(--gray, #626b56);
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

body.single-product .summary #yith-wapo-container .yith-wapo-uploaded-file-info {
    align-items: center;
    gap: 8px;
}

body.single-product .summary #yith-wapo-container .yith-wapo-uploaded-file-info .info {
    flex: 1 1 0;
    min-width: 0;
}

body.single-product .summary #yith-wapo-container .yith-wapo-uploaded-file-info .file-name {
    line-height: 1.4;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

body.single-product .summary #yith-wapo-container .yith-wapo-uploaded-file-info i.remove {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line, #e2e6dc);
    border-radius: 6px;
    color: var(--ink, #111);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    width: 44px;
}

body.single-product .summary #yith-wapo-container .yith-wapo-uploaded-file-info i.remove:focus-visible {
    border-color: #8bad32;
    outline: 2px solid var(--lime, #c6ed62);
    outline-offset: 2px;
}

body.single-product .summary #yith-wapo-container :is(.yith-wapo-loader-container, .yith-wapo-loader) {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

/* No display rules here: YITH decides which price rows are visible. */
body.single-product .summary #wapo-total-price-table {
    background: var(--soft, #f5f6f2);
    border: 1px solid var(--line, #e2e6dc);
    border-radius: 7px;
    margin-top: 16px;
    padding: 10px 14px;
}

body.single-product .summary #wapo-total-price-table table {
    background: transparent;
    border: 0;
    border-collapse: collapse;
    color: var(--ink, #111);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    width: 100%;
}

body.single-product .summary #wapo-total-price-table :is(th, td) {
    border: 0;
    padding: 6px 0;
    vertical-align: middle;
}

body.single-product .summary #wapo-total-price-table th {
    font-weight: 500;
    padding-right: 12px;
    text-align: left;
}

body.single-product .summary #wapo-total-price-table td {
    text-align: right;
}

body.single-product .summary #wapo-total-price-table #wapo-total-order-price {
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
}

body.single-product .summary .s360-po-wrap {
    gap: 14px;
    margin: 14px 0;
}

body.single-product .summary .s360-po-wrap .s360-po-group-title h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 768px) {
    body.single-product .summary #yith-wapo-container .yith-wapo-addon:is(.yith-wapo-addon-type-text, .yith-wapo-addon-type-number, .yith-wapo-addon-type-textarea, .yith-wapo-addon-type-select) :is(input[type="text"], input[type="number"], textarea, select),
    body.single-product.woocommerce div.product .summary form.cart .variations select {
        font-size: 16px;
        min-height: 44px;
    }

    body.single-product .summary .s360-po-wrap .s360-po-form-control:is(input[type="text"], input[type="number"], textarea, select) {
        font-size: 16px !important;
        min-height: 44px !important;
    }

    body.single-product.woocommerce div.product .summary #yith-wapo-container .yith-wapo-ajax-uploader-container > .button {
        font-size: 13px;
        min-height: 44px;
    }
}
