/* === Hrvatska pošta – Paketomat checkout CSS === */

.hp-paketomat-wrapper {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.hp-paketomat-selected {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #555;
}

.hp-open-paketomat-modal {
    cursor: pointer;
}

/* === Modal === */
.hp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-modal-inner {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}

.hp-modal-inner h3 {
    margin: 0 0 12px;
    font-size: 1.2em;
}

.hp-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.hp-modal-close:hover {
    color: #000;
}

#hp-paketomat-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
}

#hp-paketomat-list {
    overflow-y: auto;
    flex: 1;
}

/* === Lista lokacija === */
ul.hp-paketomat-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

li.hp-paketomat-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 3px;
}

li.hp-paketomat-item:hover {
    background: #e8f4fd;
}

li.hp-paketomat-item strong {
    display: block;
    color: #d4001e; /* HP crvena */
    font-size: 0.95em;
}

li.hp-paketomat-item small {
    color: #777;
    font-size: 0.85em;
}
