:root {
    --tmwob-orange: #ff821b;
    --tmwob-dark: #002c28;
    --tmwob-green: #1db266;
    --tmwob-blue: #28479c;
}

.tmwob-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* Shop/archive buttons */
.tmwob-loop-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    margin-top: 12px;
}

.tmwob-loop-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
}

.tmwob-loop-actions .tmwob-loop-add {
    color: var(--tmwob-orange) !important;
    background: #fff !important;
    border: 1px solid var(--tmwob-orange) !important;
}

.tmwob-loop-actions .tmwob-loop-buy {
    color: #fff !important;
    background: var(--tmwob-orange) !important;
    border: 1px solid var(--tmwob-orange) !important;
}

/* Product page */
.tmwob-single-panel,
.tmwob-single-form {
    display: block !important;
    width: 100%;
    clear: both;
}

.tmwob-single-panel {
    margin: 22px 0 18px;
}

.tmwob-quantity-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 0 24px;
}

.tmwob-quantity-label {
    min-width: 130px;
    color: #171717;
    font-size: 20px;
    font-weight: 500;
}

.tmwob-quantity-control {
    display: grid;
    grid-template-columns: 44px 70px 44px;
    align-items: center;
    min-height: 64px;
    padding: 0 8px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
}

.tmwob-quantity-control .quantity {
    display: block !important;
    float: none !important;
    margin: 0 !important;
}

.tmwob-quantity-control input.qty {
    width: 70px !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 22px !important;
    text-align: center !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.tmwob-quantity-control input.qty::-webkit-outer-spin-button,
.tmwob-quantity-control input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tmwob-qty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f5;
    color: #495057;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.tmwob-single-actions,
.tmwob-non-simple-contact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    width: 100%;
}

.tmwob-single-actions > .button,
.tmwob-non-simple-contact > .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 66px;
    margin: 0 !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
}

.tmwob-single-add {
    background: var(--tmwob-orange) !important;
    text-transform: uppercase;
}

.tmwob-single-buy-now {
    background: var(--tmwob-dark) !important;
    text-transform: uppercase;
}

.tmwob-single-whatsapp {
    background: var(--tmwob-green) !important;
}

.tmwob-single-call {
    background: var(--tmwob-blue) !important;
}

.tmwob-contact-only {
    margin-top: 12px;
}

.tmwob-unavailable {
    margin: 0 0 12px;
}

/* Floating contact buttons — intentionally force-visible because some mobile themes
   apply late-loaded animation/visibility rules to footer content. */
html body .tmwob-floating {
    position: fixed !important;
    top: auto !important;
    right: 18px !important;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    filter: none !important;
    pointer-events: auto !important;
    isolation: isolate;
}

html body .tmwob-float-button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
}

.tmwob-float-button .tmwob-icon {
    width: 29px;
    height: 29px;
}

.tmwob-float-button > span {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    padding: 6px 10px;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.tmwob-float-button:hover > span {
    opacity: 1;
}

.tmwob-float-whatsapp {
    background: #25d366;
}

.tmwob-float-phone {
    background: #1747b0;
}

@media (max-width: 767px) {
    .tmwob-loop-actions .button {
        min-height: 36px;
        padding: 7px 5px !important;
        font-size: 11px !important;
    }

    .tmwob-loop-actions .tmwob-icon {
        width: 15px;
        height: 15px;
    }

    .tmwob-quantity-row {
        justify-content: space-between;
        gap: 10px;
    }

    .tmwob-quantity-label {
        min-width: auto;
        font-size: 18px;
    }

    .tmwob-single-actions,
    .tmwob-non-simple-contact {
        gap: 10px;
    }

    .tmwob-single-actions > .button,
    .tmwob-non-simple-contact > .button {
        min-height: 56px;
        padding: 10px 7px !important;
        font-size: 14px !important;
    }

    html body .tmwob-floating {
        right: 12px !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 9px !important;
    }

    html body .tmwob-float-button {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }
}

/* v1.2.1 mobile phone button visibility fix */
html body .tmwob-floating{display:flex!important;position:fixed!important;z-index:2147483647!important;}
html body .tmwob-float-phone{display:flex!important;visibility:visible!important;opacity:1!important;}


/* Final mobile call button visibility fix */
.tmwob-floating,
.tmwob-float-phone {
    visibility: visible !important;
    opacity: 1 !important;
}

.tmwob-float-phone {
    display: flex !important;
}
