/* Highland Huts Postcode Delivery Calculator */
.hhpdc-calculator,
.hhpdc-calculator * {
    box-sizing: border-box;
}

/* Keep the calculator flush with the surrounding Breakdance layout. */
.hhpdc-calculator,
.hhpdc-host {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hhpdc-calculator {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.hhpdc-heading {
    margin: 0 0 8px;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.hhpdc-intro {
    margin: 0 0 16px;
    color: inherit;
    font: inherit;
}

.hhpdc-form {
    margin: 0;
    padding: 0;
}

.hhpdc-form label {
    display: block;
    margin: 0 0 7px;
    color: inherit;
    font: inherit;
    font-weight: 700;
}

.hhpdc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    margin: 0 0 16px;
}

.hhpdc-postcode {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cfd4da;
    border-radius: 3px;
    background: #fff;
    color: inherit;
    box-shadow: none;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    text-transform: uppercase;
}

.hhpdc-postcode::placeholder {
    color: #7b8490;
    text-transform: none;
}

.hhpdc-postcode:focus {
    outline: 2px solid rgba(224, 171, 7, 0.22);
    outline-offset: 0;
    border-color: #e0ab07;
    box-shadow: none;
}

.hhpdc-row button {
    min-height: 42px;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 3px;
    background: var(--hhpdc-button-color, #e0ab07);
    color: #fff;
    box-shadow: none;
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.hhpdc-row button:hover,
.hhpdc-row button:focus-visible {
    background: var(--hhpdc-button-hover, #c99600);
    color: #fff;
}

.hhpdc-row button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.hhpdc-result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 11px 0 7px;
    border-top: 1px solid #dfe3e7;
    background: transparent;
}

.hhpdc-result-label {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.hhpdc-result-price {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    white-space: nowrap;
}

.hhpdc-status {
    margin: 0 0 12px;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.hhpdc-calculator.is-warning .hhpdc-status {
    color: #8a5a00;
    font-weight: 600;
}

.hhpdc-note {
    margin: 0;
    padding: 11px 0 0;
    border-top: 1px solid #e7eaed;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

@media (max-width: 520px) {
    .hhpdc-row {
        grid-template-columns: 1fr;
    }

    .hhpdc-row button {
        width: 100%;
    }
}

/* Hidden anti-bot honeypot. */
.hhpdc-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Independent result-label styling. */
.hhpdc-custom-result-label .hhpdc-result-label {
    color: var(--hhpdc-result-label-color);
    font-size: var(--hhpdc-result-label-size);
    font-weight: var(--hhpdc-result-label-weight);
    line-height: 1.3;
}

/* Optional manual typography overrides from the plugin settings. */
.hhpdc-calculator.hhpdc-custom-typography {
    font-size: var(--hhpdc-font-size);
    font-weight: var(--hhpdc-font-weight);
    line-height: 1.45;
}

.hhpdc-custom-typography .hhpdc-postcode {
    font-size: var(--hhpdc-font-size);
    line-height: 1.2;
}

.hhpdc-custom-typography .hhpdc-row button {
    font-size: var(--hhpdc-button-font-size) !important;
    font-weight: var(--hhpdc-button-font-weight);
    line-height: 1.2;
}

.hhpdc-custom-typography .hhpdc-result-label {
    color: var(--hhpdc-result-label-color);
    font-size: var(--hhpdc-result-label-size);
    font-weight: var(--hhpdc-result-label-weight);
    line-height: 1.3;
}

.hhpdc-custom-typography .hhpdc-result-price {
    color: var(--hhpdc-result-price-color);
    font-size: var(--hhpdc-result-price-size);
    font-weight: var(--hhpdc-result-price-weight);
    line-height: 1.3;
}

.hhpdc-custom-typography .hhpdc-status {
    color: var(--hhpdc-status-color);
    font-size: var(--hhpdc-status-size);
    font-weight: var(--hhpdc-status-weight);
    line-height: 1.45;
}


.hhpdc-custom-typography .hhpdc-note {
    color: var(--hhpdc-note-color);
    font-size: var(--hhpdc-note-size);
    font-weight: var(--hhpdc-note-weight);
    line-height: 1.45;
}
