/**
 * Novevision customizations of onepagecheckoutps — phone country selector styles for pages where
 * OPC does not load them (login / registration) and for the phone login component.
 * Rules taken from the module's identity.css (selectors generalised).
 *
 * @author    Novevision.com, Britoff A.
 * @copyright 2026 Novevision (https://novevision.com), Brytov Andrii
 */
#opc_main .phone-input-group,.nove-pl .phone-input-group{display:flex;flex-wrap:wrap;gap:0;width:100%;position:relative}#opc_main .phone-input-group .phone-input,.nove-pl .phone-input-group .phone-input{flex:1;border-top-right-radius:0;border-bottom-right-radius:0;border-right:0;min-width:0;padding-right:.75rem}#opc_main .phone-input-group .phone-input:focus,.nove-pl .phone-input-group .phone-input:focus{z-index:2}#opc_main .phone-input-group .phone-country-selector,.nove-pl .phone-input-group .phone-country-selector{display:flex;align-items:center;position:relative;border:1px solid var(--bs-border-color);border-left:0;border-top-right-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius);background-color:#fff;padding:0 .5rem;cursor:pointer;transition:border-color .15s ease-in-out}#opc_main .phone-input-group.has-error .phone-country-selector,.nove-pl .phone-input-group.has-error .phone-country-selector{border-color:var(--bs-danger)}#opc_main .phone-input-group .phone-flag-wrapper,.nove-pl .phone-input-group .phone-flag-wrapper{display:flex;align-items:center;gap:.25rem;position:relative;padding:.375rem .5rem}#opc_main .phone-input-group .phone-flag-icon,.nove-pl .phone-input-group .phone-flag-icon{width:1.25rem;height:1.25rem;display:inline-block;border-radius:2px;flex-shrink:0}#opc_main .phone-input-group .phone-dropdown-arrow,.nove-pl .phone-input-group .phone-dropdown-arrow{width:14px;height:14px;stroke:currentColor;stroke-width:1.5;fill:none;flex-shrink:0;color:#6c757d}#opc_main .phone-input-group .phone-country-select,.nove-pl .phone-input-group .phone-country-select{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1;font-size:16px;appearance:none;-webkit-appearance:none;-moz-appearance:none;border:none;background:rgba(0,0,0,0)}#opc_main .phone-input-group .help-block,.nove-pl .phone-input-group .help-block,#opc_main .phone-input-group .form-error,.nove-pl .phone-input-group .form-error,#opc_main .phone-input-group .form-control-comment,.nove-pl .phone-input-group .form-control-comment{flex-basis:100%;width:100%;order:999}#opc_main .phone-input-group.form-group label,.nove-pl .phone-input-group.form-group label{width:100%}#opc_main .form-floating .phone-input-group .phone-input,.nove-pl .form-floating .phone-input-group .phone-input{height:calc(3.5rem + 2px);line-height:1.25;padding-top:1.625rem;padding-bottom:.625rem}#opc_main .form-floating .phone-input-group .phone-country-selector,.nove-pl .form-floating .phone-input-group .phone-country-selector{height:calc(3.5rem + 2px);align-items:center;padding:0}#opc_main .form-floating .phone-input-group .phone-flag-wrapper,.nove-pl .form-floating .phone-input-group .phone-flag-wrapper{height:100%;padding:.5rem .625rem}#opc_main .form-floating .phone-input-group .phone-flag-icon,.nove-pl .form-floating .phone-input-group .phone-flag-icon{width:1.375rem;height:1.375rem}#opc_main .form-floating:has(.phone-input-group) label,.nove-pl .form-floating:has(.phone-input-group) label{left:0;padding-left:.75rem}@media(max-width: 576px){#opc_main .phone-input-group .phone-flag-wrapper,.nove-pl .phone-input-group .phone-flag-wrapper{padding:.25rem .375rem}#opc_main .phone-input-group .phone-flag-icon,.nove-pl .phone-input-group .phone-flag-icon{width:1.125rem;height:1.125rem}#opc_main .phone-input-group .phone-dropdown-arrow,.nove-pl .phone-input-group .phone-dropdown-arrow{width:12px;height:12px}}

/* NOVEVISION (5.3.4): account check messages */
.nove-email-warning.alert, .nove-account-warning.alert { display: block; margin: .75rem 0; font-size: .9rem; line-height: 1.4; }
.nove-email-warning .alert-link, .nove-account-warning .alert-link { font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* NOVEVISION (5.3.6): birthday picker (jQuery UI datepicker of OPC) — the PrestaShop
   "base" jQuery UI theme looks foreign in modern themes; neutral card look instead. */
#ui-datepicker-div.ui-datepicker {
    width: 18.5rem; padding: .75rem; margin-top: .25rem; z-index: 1060 !important;
    font: inherit; font-size: .875rem; color: #212529;
    background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12);
}
#ui-datepicker-div .ui-datepicker-header {
    position: relative; display: flex; align-items: center; justify-content: center; gap: .375rem;
    padding: 0 2.25rem .5rem; margin: 0; background: none; border: 0; border-radius: 0; color: inherit; font-weight: 600;
}
#ui-datepicker-div .ui-datepicker-title { display: flex; gap: .375rem; margin: 0; line-height: 1; width: 100%; }
#ui-datepicker-div .ui-datepicker-title select {
    flex: 1 1 50%; width: auto; min-width: 0; height: 2.25rem; margin: 0; padding: 0 1.75rem 0 .5rem;
    font: inherit; font-size: .875rem; color: inherit; background-color: #fff; cursor: pointer;
    border: 1px solid #dee2e6; border-radius: .375rem;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right .5rem center; background-size: 12px 10px;
}
#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    position: absolute; top: 0; width: 2rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
    background: none; border: 0; border-radius: .375rem; cursor: pointer; color: #495057;
}
#ui-datepicker-div .ui-datepicker-prev { left: 0; }
#ui-datepicker-div .ui-datepicker-next { right: 0; }
#ui-datepicker-div .ui-datepicker-prev:hover,
#ui-datepicker-div .ui-datepicker-next:hover { background: #f1f3f5; }
#ui-datepicker-div .ui-datepicker-prev span,
#ui-datepicker-div .ui-datepicker-next span { display: none; }
#ui-datepicker-div .ui-datepicker-prev::before,
#ui-datepicker-div .ui-datepicker-next::before {
    content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 0 2px 2px;
}
#ui-datepicker-div .ui-datepicker-prev::before { transform: translateX(2px) rotate(45deg); }
#ui-datepicker-div .ui-datepicker-next::before { transform: translateX(-2px) rotate(-135deg); }
#ui-datepicker-div .ui-datepicker-prev.ui-state-disabled,
#ui-datepicker-div .ui-datepicker-next.ui-state-disabled { opacity: .3; cursor: default; background: none; }
#ui-datepicker-div table { width: 100%; margin: 0; border-collapse: collapse; font-size: .875rem; }
#ui-datepicker-div th { padding: 0; height: 1.9rem; vertical-align: middle; font-weight: 600; font-size: .75rem; color: #6c757d; text-transform: uppercase; border: 0; }
#ui-datepicker-div td { padding: 1px; border: 0; }
#ui-datepicker-div td span,
#ui-datepicker-div td a,
#ui-datepicker-div td a.ui-state-default {
    display: block; padding: 0; height: 2.1rem; line-height: 2.1rem; text-align: center; text-decoration: none;
    color: #212529; background: transparent; border: 0; border-radius: .375rem; font-weight: 400;
}
#ui-datepicker-div td a.ui-state-hover,
#ui-datepicker-div td a:hover { background: #f1f3f5; color: #212529; }
#ui-datepicker-div td.ui-datepicker-today a { box-shadow: inset 0 0 0 1px #adb5bd; font-weight: 600; }
#ui-datepicker-div td a.ui-state-active,
#ui-datepicker-div td a.ui-state-active:hover { background: #212529; color: #fff; }
#ui-datepicker-div td.ui-datepicker-other-month,
#ui-datepicker-div td.ui-state-disabled span { color: #adb5bd; opacity: 1; }
#ui-datepicker-div .ui-datepicker-buttonpane { margin: .5rem 0 0; padding: .5rem 0 0; border-top: 1px solid #e9ecef; background: none; }
#ui-datepicker-div .ui-datepicker-buttonpane button {
    margin: 0 0 0 .25rem; padding: .25rem .75rem; font: inherit; font-size: .8125rem; color: #212529;
    background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .375rem; opacity: 1; box-shadow: none;
}

/* NOVEVISION (5.3.7): "Do not call me to confirm the order" under the addresses */
.nove-no-call { margin: .75rem 0 1rem; }
.nove-no-call__label { display: flex; align-items: flex-start; gap: .5rem; margin: 0; cursor: pointer; font-weight: 400; line-height: 1.4; }
.nove-no-call__label input { flex: 0 0 auto; margin: .2rem 0 0; width: 1rem; height: 1rem; cursor: pointer; }

/* NOVEVISION (5.3.8): the whole carrier row is clickable, like a payment row */
#opc_main .delivery-option { cursor: pointer; }

/* NOVEVISION (5.5.6): "Already a customer? Sign in" on the checkout without login by phone */
.nove-login-toggle { font-size: .9rem; margin: 0 0 .75rem; }
.nove-login-toggle__text { color: #6b6b6b; }
.nove-login-toggle__link { font-weight: 600; text-decoration: underline; }
