/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* Contenido desplegado de un método de pago (texto informativo y formulario).
   En escritorio va indentado bajo la opción para que se vea que pertenece a ella
   (theme.css: body#checkout .additional-information { margin-left: 2.875rem }).
   En móvil esa sangría se come el ancho y el bloque queda descolocado, así que
   ahí va a ancho completo. Sustituye a los parches por ancho de pantalla que
   había solo para #payment-option-1, que además lo sacaban por la derecha con
   un margen negativo. */
@media (max-width: 767px) {
    body#checkout .additional-information,
    body#checkout .js-payment-option-form {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 412px) {
    #checkboxGuardar {
        margin: 0 15px !important;
    }
}

.dark {
    color: #383838 !important;
}

.delivery-type{
    padding: 18px 5px 19px 5px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 5px !important;
}

#delivery-pickup-address{
    margin-top: 0px !important;
    margin-bottom: 5px !important;
}

.delivery-pickup-address-line {
    margin-bottom: 0;
    display: block;
    word-break: break-word;
    text-align: left;
}

.delivery-pickup-address-info {
    font-weight: 700;
}

.payment-options, .payment-card {
    margin-bottom: 20px;
}

.payment-option, .payment-card {
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 19px 10px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
}

.payment-option label, .payment-card label {
    margin-bottom: 0;
    display: flex !important;
    width: 100%;
}

.payment-option img, .payment-card img{
    max-height: 30px;
    max-width: 50px;
    margin: auto 0 auto auto !important;
 }

[paypal-mark-container] {
    display: none !important;
}

.js-additional-information {
    margin-bottom: 10px;
}

.delivery-options {
  margin-top: 0 !important;
}

.border-right-line {
    border-right: 1px solid #ccc;
}

.payment-card-options {
    font-size: .875rem;
    margin-top: 1.25rem;
    margin-bottom: 10px;
}

.payment-card-option {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    background: white;
    border: 1px solid #bbbbbb;
    box-shadow: 2px 2px 2px #e5e5e5;
}

#payment-card-options .additional-information
{
    margin-top: 0px !important;
}

.payment-card {
    margin-bottom: 6px;
}

#checkboxGuardar {
    margin-top: -15px !important;
}

.sub-step-title {
    padding: 30px 0 5px 10px;
}

.sub-step-message {
    text-align: left;
    font-size: 1rem;
    margin: 0px 0 18px;
}

.sub-step-text {
    padding-left: 15px;
}

.carrier-info-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1;
}

.carrier-info-icon i {
    font-size: 16px;
    color: #25b9d7;
    vertical-align: middle;
}

.carrier-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carrier-info-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.carrier-info-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.carrier-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.carrier-info-modal-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.carrier-info-modal-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Volumetric weight modal - guanxe-logistic style */
.carrier-info-modal-medidas {
    width: 100%;
    max-width: 430px;
    border-radius: 24px 24px 0 0;
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: carrierModalSlideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
}

@keyframes carrierModalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.carrier-info-modal-medidas .medidas-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 10;
}

.carrier-info-modal-medidas .medidas-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.carrier-info-modal-medidas .medidas-modal-header .carrier-info-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-info-modal-medidas .medidas-diagram {
    background: #e9f6fe;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 24px 16px;
}

.carrier-info-modal-medidas .medidas-img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.carrier-info-modal-medidas .medidas-tips {
    text-align: left;
    padding: 0 24px;
}

.carrier-info-modal-medidas .medidas-tips p {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 8px;
    line-height: 20px;
}

.carrier-info-modal-medidas .medidas-tips .tip-highlight {
    background: #fef3c7;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ffc107;
    color: #92400e;
    font-weight: 500;
}

.btn-modal-medidas-primary {
    width: calc(100% - 48px);
    margin: 20px 24px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #007299;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Express restricted products — inline warning callout */
.express-restricted-callout {
    margin: 10px 0 4px;
    padding: 12px 14px;
    background: #fff8e1;
    border: 1px solid #ffe0a3;
    border-left: 4px solid #f5a623;
    border-radius: 6px;
}

/* DNI/NIE/CIF customs help text (Canarias) — always below the field */
.form-control-help-block {
    display: block;
    position: static;
    width: 100%;
    font-size: .875rem;
    padding-top: .5rem;
    color: #e67e22;
}
body#checkout section.checkout-step .form-control-help-block {
    position: static;
    right: auto;
    top: auto;
    display: block;
    width: 100%;
    padding: .5rem 0 0;
    font-style: normal;
    color: #e67e22;
}

.express-restricted-callout-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #8a5a00;
}

.express-restricted-callout-icon {
    font-size: 18px;
    line-height: 1;
}

.express-restricted-callout-text {
    margin: 6px 0 0;
    font-size: 13px;
    color: #5c4a1a;
}

.express-restricted-callout-link {
    color: #a15c00;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

/* Express restricted products modal list */
.express-restricted-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.express-restricted-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.express-restricted-list li:last-child {
    border-bottom: none;
}

.express-restricted-measures {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: #eef6fb;
    border-left: 4px solid #007299;
    border-radius: 6px;
    font-size: 13px;
    color: #14495e;
}

/* FAQ (páginas CMS con .accordion): flecha que gira al abrir en lugar del «+» en círculo, como los desplegables
   de la app («Lugar de entrega», «Comentario del pedido»). Pisa las reglas de theme.css (misma especificidad,
   custom.css se carga después). 07-11-2026.
   El hueco de la derecha va en el botón: el padding del título (inline) solo aparta la última línea y el icono
   pisaba los títulos de dos líneas («Compras en tiendas de fuera de la UE»). */
.accordion button {
    padding-right: 1.75em;
}
.accordion button .icon {
    border: none;
    border-radius: 0;
}
.accordion button .icon::before {
    display: none;
}
.accordion button .icon::after {
    top: 3px;
    left: 6px;
    width: 9px;
    height: 9px;
    background: none;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms linear, top 200ms linear;
}
.accordion button[aria-expanded='true'] .icon::after {
    top: 8px;
    width: 9px;
    transform: rotate(-135deg);
}