/* Printigma Phase 1 QA fixes: new elements and responsive corrections. */

/* Single store map (keyless embed) */
.single-store-map {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f3f3;
}

.single-store-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Nearby stores distance */
.ns-box .ns-distance {
    font-weight: 600;
    color: #FAA11E;
}

/* Registration notes */
.pg-password-hint,
.pg-terms-note {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.pg-terms-note a,
.store-review-login-message a {
    color: #FAA11E;
    text-decoration: underline;
}

/* Claim form upload label */
.pg-claim-doc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.pg-claim-doc-help {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

/* New links keep the original text styling */
.pg-help-phone a,
.storefeat .elementor-icon-list-text a,
.store-card .store-content h4 a {
    color: inherit;
    text-decoration: none;
}

/* Account: claim request status */
.pg-my-claims {
    margin-bottom: 30px;
    overflow-x: auto;
}

.pg-my-claims table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pg-my-claims th,
.pg-my-claims td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.pg-claim-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pg-claim-pending {
    background: #FFF4E3;
    color: #A15C00;
}

.pg-claim-approved {
    background: #E6F6EA;
    color: #1E7B34;
}

.pg-claim-rejected,
.pg-claim-unavailable {
    background: #FDE8E8;
    color: #B42318;
}

.pg-my-claims td {
    vertical-align: middle;
}

.pg-my-claims .pg-claim-actions {
    white-space: nowrap;
}

/* Same look as the original store-card buttons (custom CSS: primary / accent pills). */
.pg-my-claims .pg-claim-actions .my-store-button,
.pg-my-claims .pg-claim-actions .my-store-edit-button {
    display: inline-flex;
    margin: 2px 4px 2px 0;
    padding: 8px 18px;
    border: 0;
    border-radius: 40px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.pg-my-claims .pg-claim-actions .my-store-button {
    background: var( --e-global-color-primary );
}

.pg-my-claims .pg-claim-actions .my-store-edit-button {
    background: var( --e-global-color-accent );
}

/* Phones: each row becomes a small labelled block instead of a wide table. */
@media (max-width: 767px) {
    .pg-my-claims table,
    .pg-my-claims tbody,
    .pg-my-claims tr,
    .pg-my-claims td {
        display: block;
        width: 100%;
    }

    .pg-my-claims thead {
        display: none;
    }

    .pg-my-claims tr {
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;
    }

    .pg-my-claims td {
        display: flex;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
        border: 0;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    .pg-my-claims td:last-child {
        border-bottom: 0;
    }

    .pg-my-claims td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-weight: 600;
        color: #000;
        text-align: left;
    }
}

/* Store page: rating, opening hours, services */
.pg-store-details {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.pg-store-detail strong {
    display: block;
    margin-bottom: 4px;
    color: #000;
}

.pg-store-rating strong {
    display: inline;
    margin-right: 4px;
}

.pg-stars {
    color: #FAA11E;
    letter-spacing: 1px;
}

.pg-store-muted {
    color: #777;
}

.pg-store-hours ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-store-services ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-store-services li {
    padding: 4px 12px;
    border-radius: 20px;
    background: #FFF4E3;
    font-size: 13px;
}

.my-store-field textarea {
    width: 100%;
}

/* Homepage real customer reviews (same look as the old testimonial cards).
   Elementor caches the section markup, so the heading is hidden here while there are no reviews. */
.pg-reviews-section:not(:has(.pg-reviews-grid)) {
    display: none;
}

.pg-reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 23px;
    margin-top: 10px;
}

.pg-review-card {
    flex: 0 1 calc((100% - 46px) / 3);
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 25px;
    background: #F5F5F5;
}

.pg-review-quote {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 34px;
    height: auto;
}

.pg-review-stars {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 2px;
    color: #FAA11E70;
}

.pg-review-stars .on {
    color: #FAA11E;
}

.pg-review-text {
    flex: 1;
    margin: 22px 0 24px;
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
}

.pg-review-author strong {
    display: block;
    font-family: "Urbanist", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.pg-review-author a {
    font-family: "Work Sans", sans-serif;
    font-size: 13px;
    color: #FAA11E;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .pg-review-card {
        flex-basis: calc((100% - 23px) / 2);
    }
}

@media (max-width: 767px) {
    .pg-reviews-grid {
        gap: 16px;
    }

    .pg-review-card {
        flex-basis: 100%;
    }
}

/* Homepage "Use my location" for nearby store cards */
.pg-use-location {
    display: inline-flex;
    align-items: center;
    margin: 0 0 16px;
    padding: 8px 18px;
    border: 1px solid #FAA11E;
    border-radius: 30px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pg-use-location:hover,
.pg-use-location:focus {
    background: #FAA11E;
    color: #fff;
}

.pg-use-location:disabled {
    opacity: .7;
    cursor: wait;
}

/* Homepage locator search form */
.stores-search-wrap {
    margin: 0;
}

/* Never allow sideways scrolling on small screens (clip keeps sticky elements working). */
body {
    overflow-x: clip;
}

/* Contact form column gaps use negative margins that overflow narrow screens. */
@media (max-width: 767px) {
    .ct_form .elementor-form-fields-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ct_form .elementor-field-group {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
