/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

form.order-withdrawal-request {
    --owb-max-width:    640px;
    --owb-gap:          1.25rem;
    --owb-radius:       6px;
    --owb-border:       #d5d8dd;
    --owb-border-focus: #1f2328;
    --owb-ring:         rgba(31, 35, 40, .15);
    --owb-field-bg:     #fff;
    --owb-text:         #1f2328;
    --owb-label:        #4a5057;
    --owb-muted:        #6b7280;
    --owb-error:        #b32d2e;
    --owb-btn-bg:       #1f2328;
    --owb-btn-bg-hover: #000;
    --owb-btn-text:     #fff;

    max-width: var(--owb-max-width);
    margin-inline: auto;
    text-align: left;
    color: var(--owb-text);
}

form.order-withdrawal-request .eu-owb-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--owb-gap);
    align-items: start;
}

form.order-withdrawal-request .eu-owb-form-fields > * {
    grid-column: 1 / -1;
    min-width: 0;
}

form.order-withdrawal-request .eu-owb-form-fields > .form-row-first { grid-column: 1 / 2; }
form.order-withdrawal-request .eu-owb-form-fields > .form-row-last  { grid-column: 2 / -1; }

form.order-withdrawal-request .eu-owb-form-fields > .clear { display: none; }

form.order-withdrawal-request .form-row {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

@media (max-width: 600px) {
    form.order-withdrawal-request .eu-owb-form-fields {
        grid-template-columns: minmax(0, 1fr);
    }
    form.order-withdrawal-request .eu-owb-form-fields > .form-row-first,
    form.order-withdrawal-request .eu-owb-form-fields > .form-row-last {
        grid-column: 1 / -1;
    }
}

form.order-withdrawal-request .form-row > label {
    display: block;
    margin: 0 0 .4rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: var(--owb-label);
}

form.order-withdrawal-request .form-row .required {
    color: var(--owb-error);
    border: 0;
    text-decoration: none;
}

form.order-withdrawal-request .form-row input.input-text,
form.order-withdrawal-request .form-row textarea,
form.order-withdrawal-request .form-row select {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: .7rem .85rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--owb-text);
    background-color: var(--owb-field-bg);
    border: 1px solid var(--owb-border);
    border-radius: var(--owb-radius);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

form.order-withdrawal-request .form-row input.input-text:focus,
form.order-withdrawal-request .form-row textarea:focus,
form.order-withdrawal-request .form-row select:focus {
    outline: none;
    border-color: var(--owb-border-focus);
    box-shadow: 0 0 0 3px var(--owb-ring);
}

form.order-withdrawal-request .form-row textarea {
    min-height: 120px;
    resize: vertical;
}

form.order-withdrawal-request .woocommerce-invalid input.input-text,
form.order-withdrawal-request .woocommerce-invalid textarea,
form.order-withdrawal-request .woocommerce-invalid select {
    border-color: var(--owb-error);
}

.woocommerce form.order-withdrawal-request .form-row label.checkbox {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    position: relative;
    margin: 0;
    padding: 0;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    color: var(--owb-text);
    cursor: pointer;
}

form.order-withdrawal-request label.checkbox input[type="checkbox"] {
    position: static !important;
    top: auto !important;
    left: auto !important;
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    margin: .18em 0 0 !important;
}

form.order-withdrawal-request .eu-owb-woocommerce-select-certain-items-desc {
    display: block;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--owb-muted);
}

form.order-withdrawal-request .eu-owb-order-item-select-wrapper {
    display: grid;
    gap: var(--owb-gap);
}

form.order-withdrawal-request .order-supports-partial-withdrawal {
    display: grid;
    gap: .5rem;
}

form.order-withdrawal-request .eu-owb-woocommerce-withdrawal-order-details {
    margin: 0;
    padding: .85rem 1rem;
    font-size: .9rem;
    background: rgba(0, 0, 0, .03);
    border-radius: var(--owb-radius);
}

form.order-withdrawal-request .eu-owb-woocommerce-withdrawal-order-details mark {
    background: none;
    font-weight: 600;
    color: inherit;
}

form.order-withdrawal-request .order-withdrawal-request-items-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .9rem;
}

form.order-withdrawal-request .order-withdrawal-request-items-table th,
form.order-withdrawal-request .order-withdrawal-request-items-table td {
    padding: .6rem .5rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--owb-border);
}

form.order-withdrawal-request .order-withdrawal-request-items-table th {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--owb-muted);
}

form.order-withdrawal-request .order-withdrawal-request-items-table th.product-select,
form.order-withdrawal-request .order-withdrawal-request-items-table td.product-select {
    width: 1px;
    padding-left: .75rem;
    padding-right: 0;
}

.woocommerce form.order-withdrawal-request .order-withdrawal-request-items-table label.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
}

form.order-withdrawal-request .order-withdrawal-request-items-table .product-quantity {
    text-align: right;
    white-space: nowrap;
}

form.order-withdrawal-request .order-item-non-withdrawable {
    color: var(--owb-muted);
}

form.order-withdrawal-request .eu-owb-notice-wrapper:empty { display: none; }
form.order-withdrawal-request .eu-owb-notice-wrapper > *   { margin: 0 0 var(--owb-gap); }

form.order-withdrawal-request #order-withdrawal-request-submit {
    margin-top: 1.75rem;
    padding: 0;
}

form.order-withdrawal-request button[name="order_withdrawal_request"] {
    display: inline-block;
    width: 100%;
    padding: .9rem 1.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--owb-btn-text);
    background-color: var(--owb-btn-bg);
    border: 0;
    border-radius: var(--owb-radius);
    cursor: pointer;
    transition: background-color .15s ease;
}

form.order-withdrawal-request button[name="order_withdrawal_request"]:hover,
form.order-withdrawal-request button[name="order_withdrawal_request"]:focus {
    background-color: var(--owb-btn-bg-hover);
    color: var(--owb-btn-text);
}

form.order-withdrawal-request button[name="order_withdrawal_request"]:focus-visible {
    outline: 3px solid var(--owb-ring);
    outline-offset: 2px;
}

@media (min-width: 601px) {
    form.order-withdrawal-request button[name="order_withdrawal_request"] {
        width: auto;
        min-width: 16rem;
    }
}

form.order-withdrawal-request .form-row-email-repeat {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    z-index: -1000 !important;
}

form.order-withdrawal-request .form-row-email-repeat input {
    visibility: hidden !important;
}

/* ΜΕΓΕΘΟΣ under the product title - a variation swatch in looks only.
   See inc/woodmart-modifications.php: itrust_product_length_swatch(). */
.itrust-product-length {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.itrust-product-length .itrust-product-length-label {
    font-weight: 600;
}

/* Nothing here is clickable: no hover lift, no pointer, no text selection
   handles - it only reports the product's size. */
.itrust-product-length .wd-swatch {
    cursor: default;
    pointer-events: none;
}

/* Subcategory hover label on the category loop - see inc/category-loop.php:
   itrust_category_loop_outer_description(). Our ".ltf-cat-outer-desc" keeps the
   parent's "wd-cat-count" class so it inherits the design's positioning and
   hover fade; when it is there, the theme's own "X προϊόντα" count is dropped,
   otherwise the count stays exactly as it was. */
.wd-cat-content:has(> .ltf-cat-outer-desc) > .wd-cat-count:not(.ltf-cat-outer-desc) {
    display: none;
}

/* The count is a short uppercase number-plus-word; a description is a sentence,
   so it needs sentence casing, a line height and a width to wrap inside. */
.wd-cat-count.ltf-cat-outer-desc {
    max-width: 90%;
    margin-inline: auto;
    text-align: center;
    text-transform: none;
    font-size: 15px;
    line-height: 1.4;
}

/* Findbar in the mobile header - see itrust_findbar_mobile_slot_script().
   Flex items never shrink below their content, and Findbar's <input> has a
   browser-default intrinsic width (~20 characters at its 24px font), so on
   narrow screens the header row outgrew the viewport and took the search box
   and its overlay off-screen with it. Let every level down to the input shrink. */
.wd-header-html:has(.itr-findbar-mobile-slot) {
    flex: 1 1 0%;
    min-width: 0;
}

.itr-findbar-mobile-slot,
.itr-findbar-mobile-slot #main-header,
.itr-findbar-mobile-slot .full-search-container {
    width: 100%;
    min-width: 0;
}

.itr-findbar-mobile-slot .fbr-search-input {
    min-width: 0;
}

/* Single video: the YouTube player in place of the featured image
   (inc/post-types.php). */
.itr-video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
}

.itr-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Treatment product table - one row of products per hair type, after the
   post content of posts and treatments (inc/post-types.php). */
.itr-treatment {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.itr-treatment-hairtype {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background: var(--wd-primary-color) center / cover no-repeat;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.itr-treatment-hairtype.has-image {
    min-height: 140px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.itr-treatment-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.itr-treatment-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.itr-treatment-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--wd-title-color);
}

.itr-treatment-product .wd-entities-title {
    margin: 0;
    font-size: 14px;
}

.itr-treatment-product .button {
    margin-top: auto;
}

/* ELTA tracking results in the [letif_order_tracking] popup - a timeline,
   newest step first, as ELTA returns them (letif_elta_track()). */
#track-your-order-wrapper .tracking-result {
    margin-top: 25px;
    max-height: 360px;
    overflow-y: auto;
}

#track-your-order-wrapper .tracking-search-results {
    margin: 0;
    padding: 0;
    list-style: none;
}

#track-your-order-wrapper .tracking-result-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 16px;
    margin: 0;
    padding: 0 0 18px;
    list-style: none;
}

/* The line joining the step markers. */
#track-your-order-wrapper .tracking-result-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 13px;
    width: 2px;
    background: var(--brdcolor-gray-300, rgba(0, 0, 0, .1));
}

#track-your-order-wrapper .tracking-result-item .aa {
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--wd-primary-color);
    border-radius: 50%;
    background: #fff;
    color: var(--wd-primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

#track-your-order-wrapper .tracking-result-item:first-child .aa {
    background: var(--wd-primary-color);
    color: #fff;
}

#track-your-order-wrapper .tracking-result-item .date {
    font-size: 13px;
    color: var(--color-gray-500, #767676);
    line-height: 28px;
}

#track-your-order-wrapper .tracking-result-item .place {
    font-weight: 600;
    color: var(--wd-title-color);
}

#track-your-order-wrapper .tracking-result-item .status {
    font-size: 14px;
}

#track-your-order-wrapper .no-voucher-found {
    text-align: center;
}
