/* Crittex Listing Delivery Info 2.1.3
   Storefront presentation tailored for the Crittex purple/cyan glass theme. */

.product-delivery-information.is-listing-delivery {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 16px 18px;
    margin-top: 10px;
    box-sizing: border-box;
}

.product-delivery-information.is-listing-delivery > .product-delivery-information {
    width: 100%;
    display: flex;
    justify-content: center;
}

.product-delivery-information.is-listing-delivery .delivery-information {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    border: 1px solid rgba(58, 192, 255, 0.88);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(25, 7, 54, 0.92), rgba(79, 25, 112, 0.78));
    box-shadow:
        inset 0 0 0 1px rgba(132, 87, 255, 0.18),
        0 0 16px rgba(37, 181, 255, 0.30),
        0 8px 24px rgba(9, 0, 24, 0.24);
    color: #f7f2ff;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0.015em;
    text-shadow: 0 0 12px rgba(52, 188, 255, 0.34);
    box-sizing: border-box;
}

.product-delivery-information.is-listing-delivery .delivery-status-indicator,
.crittex-delivery-card__dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    border: 0;
}

.product-delivery-information.is-listing-delivery .delivery-status-indicator.bg-success,
.crittex-delivery-card--success .crittex-delivery-card__dot {
    background: #00d477 !important;
    box-shadow: 0 0 7px #00d477, 0 0 14px rgba(0, 212, 119, 0.62);
}

.product-delivery-information.is-listing-delivery .delivery-status-indicator.bg-danger,
.crittex-delivery-card--danger .crittex-delivery-card__dot {
    background: #ff4d7d !important;
    box-shadow: 0 0 7px #ff4d7d, 0 0 14px rgba(255, 77, 125, 0.62);
}

.product-delivery-information.is-listing-delivery .delivery-status-indicator.bg-info,
.crittex-delivery-card--info .crittex-delivery-card__dot {
    background: #27c9ff !important;
    box-shadow: 0 0 7px #27c9ff, 0 0 14px rgba(39, 201, 255, 0.66);
}

.product-delivery-information.is-listing-delivery .delivery-status-indicator.bg-warning,
.crittex-delivery-card--warning .crittex-delivery-card__dot {
    background: #ffd45c !important;
    box-shadow: 0 0 7px #ffd45c, 0 0 14px rgba(255, 212, 92, 0.60);
}

/* Product detail
   Keep the delivery card aligned with the quantity field, add-to-cart button
   and product-number panel instead of letting it touch the buy-widget edges. */
.crittex-delivery-detail {
    width: auto;
    margin: 18px 28px 20px;
}

/* Same spacing when Shopware renders the generic delivery-information partial. */
.crittex-delivery-component {
    width: auto;
    margin-left: 28px;
    margin-right: 28px;
}

.crittex-delivery-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 62px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(58, 192, 255, 0.95);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% -60%, rgba(55, 199, 255, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(25, 7, 54, 0.94), rgba(77, 24, 111, 0.84));
    box-shadow:
        inset 0 0 0 1px rgba(147, 98, 255, 0.20),
        0 0 20px rgba(36, 185, 255, 0.34),
        0 10px 30px rgba(9, 0, 24, 0.28);
    color: #f8f4ff;
    text-align: center;
    box-sizing: border-box;
}

.crittex-delivery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.055) 50%, transparent 80%);
}

.crittex-delivery-card__dot,
.crittex-delivery-card__text {
    position: relative;
    z-index: 1;
}

.crittex-delivery-card__text {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.018em;
    text-shadow: 0 0 13px rgba(54, 190, 255, 0.38);
}

.crittex-delivery-card--none {
    gap: 0;
}

@media (max-width: 767.98px) {
    .product-delivery-information.is-listing-delivery {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-delivery-information.is-listing-delivery .delivery-information {
        min-height: 50px;
        padding: 10px 13px;
        font-size: 0.95rem;
    }

    .crittex-delivery-detail {
        margin-left: 14px;
        margin-right: 14px;
    }

    .crittex-delivery-component {
        margin-left: 14px;
        margin-right: 14px;
    }

    .crittex-delivery-card {
        min-height: 56px;
        padding: 12px 15px;
    }

    .crittex-delivery-card__text {
        font-size: 1rem;
    }
}
