/* Extraído y acotado a partir del carro de Directa. No importa Bootstrap ni temas globales. */
@font-face {
    font-family: 'SuraSansCarro';
    src: url('fonts/SuraSans/SuraSans-Regular.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'SuraSansCarro';
    src: url('fonts/SuraSans/SuraSans-Seminegrita.otf') format('opentype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'SuraSansCarro';
    src: url('fonts/SuraSans/SuraSans-Negrita.otf') format('opentype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
.soap-compra-distribucion {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    clear: both;
    padding: 0 20px 30px;
}
.soap-compra-carro {
    flex: 0 0 300px;
    min-width: 0;
    padding-top: 40px;
    text-align: center;
}
.soap-compra-formulario {
    flex: 1 1 0;
    min-width: 0;
}
.soap-compra-formulario::after { content: ''; display: table; clear: both; }
.soap-compra-formulario .aviso { box-sizing: border-box; max-width: 100%; }
.soap-compra-formulario .table-container { width: 100%; overflow-x: auto; }
.soap-carro,
.soap-carro * { box-sizing: border-box; }
.soap-carro {
    position: relative;
    isolation: isolate;
    display: inline-block;
    width: 260px;
    margin: 0 0 30px;
    padding: 20px 20px 100px;
    border: 0;
    border-radius: 10px 10px 100px 100px;
    background: #f7f7f7;
    box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, .1);
    color: #333;
    text-align: left;
    font-family: 'SuraSansCarro', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    -webkit-font-smoothing: antialiased;
}
/* Mayor especificidad que los estilos genericos del tema por convenio. */
.soap-flujo-compra .soap-compra-carro .soap-carro {
    -webkit-animation: soap-carro-flotar 5s infinite;
    animation: soap-carro-flotar 5s infinite;
    will-change: transform;
}
/* Mismo recorrido de 20 px y sombras del keyframe float de Directa. */
@keyframes soap-carro-flotar {
    0%, 100% { transform: translateY(0); box-shadow: 5px 5px 15px 0 rgba(0, 0, 0, .3); }
    50% { transform: translateY(-20px); box-shadow: 5px 25px 15px 0 rgba(0, 0, 0, .1); }
}
@-webkit-keyframes soap-carro-flotar {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); box-shadow: 5px 5px 15px 0 rgba(0, 0, 0, .3); }
    50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); box-shadow: 5px 25px 15px 0 rgba(0, 0, 0, .1); }
}
/* Movimiento habilitado incluso con reduccion de movimiento del sistema,
   segun la preferencia explicita del usuario para este carro. */
.soap-carro p {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 18px;
    line-height: inherit;
    overflow-wrap: anywhere;
}
.soap-carro strong { font-family: inherit; font-weight: 700; }
.soap-carro__acciones { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.soap-carro .soap-carro__accion { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 8px; margin: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.soap-carro .soap-carro__accion img { display: block; width: 24px; height: 24px; }
.soap-carro .soap-carro__accion:hover { background: #e5edff; }
.soap-carro .soap-carro__accion:focus-visible { outline: 2px solid #0033a0; outline-offset: 2px; }
.soap-carro .soap-carro__accion:disabled { opacity: .5; cursor: wait; }
.soap-carro h2 {
    margin: 20px 0 5px;
    padding: 0;
    font-family: inherit;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}
.soap-carro__cabecera { position: relative; display: flow-root; }
.soap-carro__cabecera::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -34px;
    left: -37px;
    width: 277px;
    height: 132px;
    background: url('../images/carro-directa/bg-sidebar-header-azul.png') no-repeat center;
    background-size: contain;
}
.soap-carro__cabecera img {
    position: relative;
    float: right;
    width: 48px;
    height: auto;
    margin-right: 20px;
}
.soap-carro .soap-carro__cabecera h2 {
    position: relative;
    margin: 20px 0 55px;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
}
.soap-carro__vehiculo,
.soap-carro__despacho,
.soap-carro__total { display: flow-root; width: 100%; }
.soap-carro hr {
    display: block;
    clear: both;
    width: 100%;
    height: 0;
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #c3cad6;
}
.soap-carro__despacho { position: relative; padding-bottom: 30px; }
.soap-carro__despacho img { float: right; max-width: 40px; height: auto; }
.soap-carro__despacho p:nth-child(2) { float: left; }
.soap-carro__total,
.soap-carro__vacio { text-align: center; }
.soap-carro .soap-carro__titulo-total { margin-bottom: 23px; font-size: 24px; font-weight: 700; }
.soap-carro__valor {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 10px 12px;
    border: solid #2d6df6;
    border-width: 2px 3px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #0033a0;
    color: #0033a0;
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
    overflow-wrap: anywhere;
}
.soap-carro__sombra { position: relative; }
.soap-carro__sombra::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -32px;
    width: 233px;
    height: 50px;
    margin-left: -116px;
    background: url('../images/carro-directa/shadow-valor-soap.png') center no-repeat;
    pointer-events: none;
}
.soap-carro .soap-carro__vigencia { margin-top: 25px; font-size: 17px; }
.soap-carro .soap-carro__estado { padding: 5px 0; font-size: 16px; }
.soap-carro__reintentar {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #0033a0;
    border-radius: 5px;
    background: #fff;
    color: #0033a0;
    font: inherit;
    cursor: pointer;
}
.soap-carro__reintentar:focus-visible { outline: 2px solid #2d6df6; outline-offset: 3px; }
/* Se conserva el total original en el DOM para los handlers productivos. */
.soap-compra-formulario .soap-carro-total-original { display: none; }
@media (max-width: 1024px) {
    .soap-compra-distribucion { gap: 20px; padding-right: 10px; padding-left: 10px; }
    .soap-compra-carro { flex-basis: 280px; }
    .soap-compra-formulario .margin1 { width: 100%; }
}
@media (max-width: 768px) {
    .soap-compra-distribucion { display: block; }
    .soap-compra-carro { width: 100%; padding-top: 40px; }
    .soap-compra-formulario { width: 100%; }
}

/* Permite pulsar las acciones sin perseguir un elemento en movimiento. */
.soap-flujo-compra .soap-compra-carro .soap-carro:hover,
.soap-flujo-compra .soap-compra-carro .soap-carro:focus-within { -webkit-animation-play-state: paused; animation-play-state: paused; }
