/* PartsDone EstimatedFulfillment storefront presentation.
 * Hyva-native availability cards. Presentation only; fulfillment logic lives in PHP.
 */
.pd-estimate {
    font-family: inherit;
    color: inherit;
}

.pd-estimate-items {
    min-width: 0;
}

.pd-estimate-item {
    --pd-estimate-surface: rgb(255 255 255);
    --pd-estimate-border: rgb(203 213 225);
    --pd-estimate-accent: rgb(51 65 85);
    --pd-estimate-badge-bg: rgb(248 250 252);
    --pd-estimate-badge-border: rgb(203 213 225);
    --pd-estimate-badge-text: rgb(51 65 85);

    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 15px 17px;
    border: 1px solid var(--pd-estimate-border);
    border-radius: 12px;
    background: var(--pd-estimate-surface);
    color: rgb(30 41 59);
    font-family: inherit;
    box-shadow:
        0 2px 5px rgb(15 23 42 / 8%),
        0 1px 2px rgb(15 23 42 / 5%);
}

/* v1.5.3 deliberately has no decorative side accent. */
.pd-estimate-item::before {
    display: none;
    content: none;
}

.pd-estimate-item--pickup {
    --pd-estimate-surface: rgb(248 253 249);
    --pd-estimate-border: rgb(188 221 196);
    --pd-estimate-accent: rgb(39 112 57);
    --pd-estimate-badge-bg: rgb(232 247 236);
    --pd-estimate-badge-border: rgb(183 220 192);
    --pd-estimate-badge-text: rgb(31 98 47);
}

.pd-estimate-item--delivery {
    --pd-estimate-surface: rgb(248 251 255);
    --pd-estimate-border: rgb(190 215 239);
    --pd-estimate-accent: rgb(43 96 151);
    --pd-estimate-badge-bg: rgb(232 242 253);
    --pd-estimate-badge-border: rgb(184 211 238);
    --pd-estimate-badge-text: rgb(38 88 137);
}

.pd-estimate-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.pd-estimate-item--has-content .pd-estimate-topline {
    margin-bottom: 10px;
}

.pd-estimate-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: rgb(15 23 42);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
}

.pd-estimate-heading h3 {
    margin: 0;
    color: inherit;
    font: inherit;
    white-space: nowrap;
}

/* Simple service icon: no tile or decorative container. */
.pd-estimate-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--pd-estimate-accent);
    box-shadow: none;
}

.pd-estimate-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-estimate-badge {
    display: inline-flex;
    min-height: 26px;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--pd-estimate-badge-border);
    border-radius: 9999px;
    background: var(--pd-estimate-badge-bg);
    color: var(--pd-estimate-badge-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    box-shadow: none;
}

/* Clean badge: no decorative status dot. */
.pd-estimate-badge::before {
    display: none;
    content: none;
}

/* Message content remains part of the card instead of becoming a nested card. */
.pd-estimate-content {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pd-estimate-ready,
.pd-estimate-detail,
.pd-estimate-holiday {
    font-family: inherit;
    letter-spacing: normal;
}

.pd-estimate-ready {
    margin: 0 0 3px;
    color: rgb(15 23 42);
    font-size: 14px;
    font-weight: 650;
    line-height: 21px;
}

/* Pickup and delivery body messages intentionally share the same typography. */
.pd-estimate-detail {
    margin: 0;
    color: rgb(51 65 85);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.pd-estimate-detail p,
.pd-estimate-detail div {
    margin: 0;
}

.pd-estimate-holiday {
    margin-top: 5px;
    color: rgb(71 85 105);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

/* Desktop-only interaction keeps the cards noticeable without adding decoration. */
@media (hover: hover) {
    .pd-estimate-item {
        transition:
            border-color 160ms ease,
            box-shadow 160ms ease,
            transform 160ms ease;
    }

    .pd-estimate-item:hover {
        transform: translateY(-1px);
        box-shadow:
            0 4px 10px rgb(15 23 42 / 10%),
            0 1px 3px rgb(15 23 42 / 6%);
    }
}

/* Shared timer remains visually neutral and unchanged in purpose. */
.pd-estimate-shared-timer {
    padding: 0.875rem 1rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    background: rgb(248 250 252) !important;
    color: inherit;
    font: inherit;
    box-shadow:
        0 1px 2px rgb(15 23 42 / 4%),
        0 5px 16px rgb(15 23 42 / 4%);
}

@media (max-width: 639px) {
    .pd-estimate-item {
        padding: 14px 15px;
        border-radius: 10px;
    }

    .pd-estimate-heading {
        font-size: 15px;
    }
}
