.hwt-marine-summary-row {
    align-items: center;
    clear: both;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.hwt-marine-summary-row .wc-bookings-booking-cost {
    align-self: center;
    flex: 1 1 auto;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    min-width: 0;
}

.hwt-marine-indicator {
    --hwt-marine-color: #7a7a7a;
    --hwt-marine-score: 0%;
    align-items: center;
    align-self: center;
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
    max-width: 260px;
    vertical-align: middle;
}

.hwt-marine-indicator[hidden] {
    display: none !important;
}

.hwt-marine-indicator:focus-visible {
    border-radius: 4px;
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.hwt-marine-ring {
    align-items: center;
    background: conic-gradient(var(--hwt-marine-color) var(--hwt-marine-score), #e4e7eb 0);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    order: 2;
    position: relative;
    width: 48px;
}

.hwt-marine-ring::before {
    background: #fff;
    border-radius: inherit;
    content: '';
    inset: 4px;
    position: absolute;
}

.hwt-marine-value {
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.hwt-marine-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    order: 1;
}

.hwt-marine-title {
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
}

.hwt-marine-details {
    color: #626b73;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.hwt-marine-indicator.is-good {
    --hwt-marine-color: #16833b;
}

.hwt-marine-indicator.is-moderate {
    --hwt-marine-color: #d97706;
}

.hwt-marine-indicator.is-poor {
    --hwt-marine-color: #c62828;
}

.hwt-marine-indicator.is-loading .hwt-marine-ring {
    animation: hwt-marine-spin 0.9s linear infinite;
    background: conic-gradient(#6b7280 25%, #e4e7eb 0);
}

.hwt-marine-indicator.is-unavailable .hwt-marine-ring {
    background: #e4e7eb;
}

@keyframes hwt-marine-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .hwt-marine-summary-row {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .hwt-marine-summary-row .wc-bookings-booking-cost {
        align-self: stretch;
    }

    .hwt-marine-indicator {
        align-self: stretch;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
        width: 100%;
    }

    .hwt-marine-copy {
        flex: 1 1 auto;
        max-width: calc(100% - 60px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hwt-marine-indicator.is-loading .hwt-marine-ring {
        animation: none;
    }
}
